Please help me to ingest the following syslog message in NIFI. (The syslog parse failed as it is unable to parse the syslog)
I want to convert the log into the following JSON format and even store the raw message in JSON
I want the parsing to be dynamic for example the key value should be automatically determined with the = delimeter and not static( where to write regex to for each and every attribute) .
What if I wanted to turn the key value pairs separated by '=' in json content as in the original question? for instance the following syslog:
"sig" : "0",
"arch" : "c000003e",
"syscall" : "87"
I'm aware this can be done using regex to create attributes and then attributeToJson but some of my logs have hundreds of key value pairs so that's not an option, there must be a way to convert it using record processing? i.e convertRecord