Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queries with variables require wrapping in parenthess #200

Open
tiny-pangolin opened this issue Jan 5, 2025 · 1 comment
Open

queries with variables require wrapping in parenthess #200

tiny-pangolin opened this issue Jan 5, 2025 · 1 comment
Assignees

Comments

@tiny-pangolin
Copy link
Contributor

I have a dashboard that uses the query (tags.host:$host) AND name:="freeipa_healthcheck" , but if I do not have parentheses around tags.host:$host then the query will return undesired logs because it generates the query tags.host:historia.local.shiftsystems.net OR krista.local.shiftsystems.net AND name:="freeipa_healthcheck" instead of the query (tags.host:historia.local.shiftsystems.net OR krista.local.shiftsystems.net) AND name:="freeipa_healthcheck". It would be nice if the generated query wrapped the part of the query with the variable automatically.

@hagen1778 hagen1778 self-assigned this Jan 7, 2025
@nebula-it
Copy link

nebula-it commented Jan 10, 2025

Similar issue with selecting multiples in Grafana UI e.g selecting these two items

Image

results in query like appname: "filterlog" AND action: rdr OR pass AND interface_name: * which does not work as intended. I came across this because changing the order of selection (i.e selecting one after another and vice versa) in Grafana UI provided different results and found this when digging into why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants