grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
236 stars 7 forks source link

Filters: Selecting a filter with only negative filters leftover will error out #468

Open svennergr opened 2 weeks ago

svennergr commented 2 weeks ago

When there are two filters:

  1. service_name = foo
  2. bar != baz

Clicking on the service_name filter will throw an error because we include the bar != baz in subsequent calls to Loki's APIs. Loki expects at least one "positive" filter tho.

We should likely include service_name+=.+ in those calls, because then Loki will be happy.

https://github.com/grafana/explore-logs/assets/8092184/ced8e6f8-a1c9-4521-a93c-870e464a8383