I am logging JSON that has a JSON field called msg that is a string that 
contains JSON. I would like to configure rsyslog to convert the JSON in the msg 
field to be JSON at the same level as the original message.


Example:


{"time":"2020-02-02T18:00:00", "mode":"imuxsock", "host":"venus", "msg":" {"name":"bill", "address":"123 Anywhere", 
"City":"Cleveland", "State":"Ohio", "zip":"12345"}"}


What I want logged is:


{"time":"2020-02-02T18:00:00", "mode":"imuxsock", "host":"venus", "name":"bill", "address":"123 Anywhere", 
"City":"Cleveland", "State":"Ohio", "zip":"12345"}


I've tried mmjsonparse but can't seem to get anywhere with it.



_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to