30 Jan 2024 08:02 PM
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.
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.
31 Jan 2024 07:24 AM
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
31 Jan 2024 08:40 PM
I don't believe I have grail (managed dynatrace)
13 Aug 2024 01:07 PM
Hi @dcole66
Have you managed to solve the problem? It would be great if you shared the solution with the Community users 💡
13 Aug 2024 08:10 PM
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.