grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.95k stars 3.45k forks source link

Grafana live mode ignoring filters in Loki 2.9.4 #12183

Open asierga95 opened 8 months ago

asierga95 commented 8 months ago

What happened?

I connected Loki 2.9.4 with Grafana. When querying in Grafana using the Live mode the filters "!=" looks to be ignored. And Loki send to Grafana some empty lines and also logs without applying the "!=" filters.

What did you expect to happen?

I expect to receive in "Live" mode the logs filtered by the defined filters.

Did this work before?

It worked before with Loki 2.6.1 and Loki 2.8.2

How do we reproduce it?

  1. Started Loki 2.9.4
  2. Connected as datasource and tested in the next Grafana versions: Grafana 8.5.13 and Grafana 9 and Grafana 10.3.
  3. Query: {service="service-name", source="app"} |json |line_format "{{.message}}{{.stacktrace}}" | level!="debug" | level!="trace"
  4. Click Live mode

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 8.5.13, 9 and 10.3 OS: Debian 9 Browser: Google Chrome

Grafana platform?

Docker

Datasource(s)?

Loki 2.9.4

matyax commented 6 months ago

We checked in the frontend and we're sending the right query to the backend.