On Sun, 8 Dec 2019, Marian Bobrik via rsyslog wrote:
HI,
please can someone share liblognorm rulebase to parser a string to nested
JSON e.g.
"server=localhost.localdomain" parse to { "host" : { "hostname" :
"localhost.localdomain" }}
I'm not sure exactly what you are looking for (an example of the source string
would help a lot)
but the approach that I would do is to parse the main message, then parse the
variable that the json ends up in
David Lang
_______________________________________________
rsyslog mailing list
http://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.