Grok pattern to extract the fields from the log file

Hi Everyone,

I am having one log file and I need to parse the message field into multiple subfields for that I need grok parser please look at the log file below:-

message:{"level":"info","ts":1611311978.7658348,"caller":"cloudservices/sqs.go:84","msg":"No messages from SQS received."}

I created grok pattern
%{LOGLEVEL:level} that fetches the level field but didn't get the way how to fetch other fields

can anyone help me on this

Why not use a json filter?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.