datadogdatadog-dashboard

Datadog extracting value from logs


i have the following being output in my logs

Finished processing [154976] items for user id [1234]

is there any way in datadog i could output that on a widget with

userid -> number

basically process the logs, similar to how we do with errors from logs and creating alerts.


Solution

  • Create a log processor with a grok parser rule such as

    getItemsAndUserid Finished processing [%{integer:count}] items for user id [%{integer:userid}]