Hello,
I have log-Messages containing json data like this:
{{u'instance_properties': {u'lm_state': u'building', u'terminated_at':
None, u'ephemeral_gb': 0, u'instance_type_id': 50, u'__platform':
u'ZANDIXOS'}, u'size': u'0'}, u'num_instances': 1, u'instance_uuids':
[u'c2de1331-82db-421a-8228-6221908a018']}
How can I extract values from this JSON String within rsyslog and use them
in variables?
e.g. ->instance_properties ->lm_state
>From my understanding the mmjsonparse Module (
http://www.rsyslog.com/doc/mmjsonparse.html
<https://deref-web.de/mail/client/dereferrer/?redirectUrl=http%3A%2F%2Fwww.rsyslog.com%2Fdoc%2Fmmjsonparse.html>)
does only support the check for valid JSON message, but not extraction of
message attributes.
Similar i
The mmpcstrucdata (
http://www.rsyslog.com/doc/v8-stable/configuration/modules/mmpstrucdata.html
<https://deref-web.de/mail/client/dereferrer/?redirectUrl=http%3A%2F%2Fwww.rsyslog.com%2Fdoc%2Fv8-stable%2Fconfiguration%2Fmodules%2Fmmpstrucdata.html>)
seems to allow extraction, but does not match with my message format.
regards
Chris
_______________________________________________
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.