I just explored
pipelines to add fieldnames to a csv data
Below rule works fine:
rule "add_field" when has_field("message") then let m = split(",", to_string($message.message)); set_field("field1A", m); set_field("field1B", m); end
But if I had say 100 fields, then setting for each index will be very time consuming.
Is there a better way to get this done by another technique?