English 中文(简体)
Datadog Dashboard with a template variable
原标题:
  • 时间:2024-03-30 00:55:36
  •  标签:
  • datadog

***I have a dashboard in Datadog that uses a "status" variable to filter the log messages. This works fine for the majority of the entries. There are some actual errors that do not have status=Error. They are logged as Info. When I select "Error" from the variable dropdown I would like to get the entries with status=Error and any other entry (regardless of the status) which has the work "Error" as part of the content. If I select status="Debug" or status="Info" I would like to get the entries that match that status.

I can t figure out how to construct the query. Please, help.

I tried different queries but they did not produce the result I wanted. I am new to datadog, so I am not sure how to construct the query.

问题回答

In which language are you programming?

but if you are talking about QUERY , this can help you to extract all logs with Error Status and logs with other status, but contain the word "error" on its message

FROM 
  logs
WHERE
  status =  Error  OR
  message LIKE  %ERROR% 
LIMIT 20

for other status values, you can remove

OR
  message LIKE  %ERROR% 




相关问题
Datadog Dashboard with a template variable

***I have a dashboard in Datadog that uses a "status" variable to filter the log messages. This works fine for the majority of the entries. There are some actual errors that do not have ...

isValidUrl from datadog/browser-core

I m looking for documentation specifically for isValidUrl from datadog/browser-core. I have searched their docs webpage but nothing - https://docs.datadoghq.com/search/?s=isValidUrl Tried to find the ...

热门标签