I'm getting audit data from my linux hosts that will sometimes repeat a field name, so I get what looks like an array of data in that field.
I've tried various forms of 'split' to see if I can separate the data into two different fields, but so far no luck.
A mutate filter does operations in a fixed order. Luckily convert comes before split and add_field happens at the end, so using one mutate for all of these operations should work.
The mutate+convert converts the msg field from an array to a string. The mutate+split then converts it back to an array. It doesn't do anything.
Perhaps the underlying issue is that the field you have is actually called [audit.log][msg], in which case the convert and split are currently no-ops (the fields they operate on do not exist) and the add_field will not modify the references to non-existent fields. Try
Found the problem, too many square brackets under add_field.
"[auditd][log][msg]" should be "[audit.log][msg]"
"[auditd][log][auditid]" should be "[auditd.log][auditid]"
"[auditd][log][auditmesg]" should be '"[auditd.log][auditmesg]"
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.