Using sumologic, how can I perform queries on log entries where the message is partially json (so not entirely)?
Example entry:
[2020-04-30 02:10:32] production.WARNING: We were rate limited {"class":"App\WebhookService\WebhookExecutor","headers":{"Date":["Thu, 30 Apr 2020 02:10:32 GMT"],"Content-Type":["application/json"],"Content-Length":["88"],"Connection":["keep-alive"],"Set-Cookie":...
I have a lot of these kinds of errors with different class paths, some are webhooks executions, others are different objects. My end goal is to be able to count the log entries for each class name, like this:
WebhookExecutor | 156
SyncDataService | 48
DeleteService | 13
I'm starting with something like:
"We were rate limited" | json auto | json "class"
My expectation with ^ was that it would create a column called class
in my Log Search results that I could then group by, count, etc.