I’ve tried to apply grok pattern to filter nested brackets in the logs which is as below,
[2022-05-20T02:21:54.715] [INFO] [{"id":"876g4jd8v36w0dhna2","data":"fetching public base-plans ..."}]
My grok pattern looks like this. But here, I’m unable to parse nested brackets (brackets inside brackets). Any help is much appreciated, since I’m trying this for long.
[%{TIMESTAMP_ISO8601:time}] [%{WORD:logLevel}] [%{DATA:id}]
2
Answers
Below is working fine and will filter as expected (regex)
This will be working fine.