I am trying to set up a logs monitoring where I can filter logs by log.level
and labels.Application
fields from a .NET application which uses a Serilog sink for Elastic.
I have created a dashboard variable and defined some JSON to query for labels.Application
, but I never get any response and I do not know why. Below is an example where I tried to query for host.name
:
Now, when I go to my Elasticsearch datasource and I click on Explore
, if I filter for logs, I am actually able to see both host.name and labels.Application.
I do not know why this works everywhere else but it somehow does not work in dashboard variables. Is there something that would need to be explicitly set up for this to work? All the examples
Data source configuration (though I would imagine it’s got nothing to do with it):