Datadog extracting value from logs

949 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

Create a log processor with a grok parser rule such as

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