cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dashboard with logviewer - filtering

dcole66
Frequent Guest

I have a log viewer panels that shows some log information that is ingested via API.   It has an environment field (da.environment) that can set if it is DEV, TEST etc.   It is also attributed to a particular host.   Where the host is also attributed to an environment via host tags.

In my log viewer I only have one criteria currently.

dcole66_0-1706644773294.png

How can I use dashboard filters to restrict the log messages to either the da.environment field.  Or to use the host tags.   I'd prefer the latter, as I have a hosts honeycomb panel and a working host tag filter.

2 REPLIES 2

PacoPorro
Dynatrace Leader
Dynatrace Leader

You can try to play with Grail.

fetch logs
filter dt.entity.host in [
  fetch dt.entity.host | filter matchesValue(tags, "XXXXXXX")
]

You can use variables to obtain the tags dynamically 

https://docs.dynatrace.com/docs/shortlink/dashboard-component-variable#define-variable-query

https://docs.dynatrace.com/docs/platform/grail/querying-monitored-entities#entity-tags


 

dcole66
Frequent Guest

I don't believe I have grail (managed dynatrace)

Featured Posts