In our logs we have keyvalue pairs that looks like this
key2='value value val'
just the default |extract does a good job but all the values still have the single quotes around them. One thing to remember is that we dont know how many keys and what keys there will be, so i cant hard code them, they are volatile.
i would like to apply this regexp to all the values of my extractions ^'(.*)'$
can i configure this somewhere in my transforms.conf ?
Something like this should work:
[mysourcetype] REPORT-ex = myreport
[myreport] REGEX = ([^=]+)='([^']+)'\s FORMAT = $1::$2 REPEAT_MATCH = true
This should automatically extract all values and populate keyX fields with them, no matter how many there are.