Parse JSON in Logs2Metrics
Hi there
I have a dynamic json, whose keys keep changing now and then. I need to extract the values of these keys from json and display them on graph.
eg:
{'timestamp': '4367438', 'queues': {'queue-a':'2, 'queue-b':5}}
-
Official comment
Hi Vivek,
Have you tried to use "JSON AUTO Keys"?
For example:
* | json auto keys
If you don't use this option, json auto will also extract all other JSON fields in the message.
For more info: https://help.sumologic.com/05Search/Search-Query-Language/01-Parse-Operators/03-Parse-JSON-Formatted-Logs
Regards,
RahulComment actions
Please sign in to leave a comment.
Comments
1 comment