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

Dashboard with logviewer - filtering

dcole66
Participant

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.

4 REPLIES 4

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
Participant

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

GosiaMurawska
Community Team
Community Team

Hi @dcole66 
Have you managed to solve the problem? It would be great if you shared the solution with the Community users 💡

 

 

No, as there was only one solution given (that I couldn't use) and nothing in the documentation, I believe I gave up.   Wish the logging system was more like Falcon Logscale, Graylog, papertrail.

Featured Posts