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

Loki. Error when using "or" statements in line filter #86086

Closed
norcalspearo opened this issue Apr 13, 2024 · 4 comments
Closed

Loki. Error when using "or" statements in line filter #86086

norcalspearo opened this issue Apr 13, 2024 · 4 comments
Labels
datasource/Loki needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc

Comments

@norcalspearo
Copy link

What happened?

{env="sandbox"} |= "error" or "fatal"
parse error at line 1, col 31: syntax error: unexpected STRING

What did you expect to happen?

No error. Search returns statements with "error" or "fatal"

Did this work before?

This is a new feature I was hoping to use:
#78705

How do we reproduce it?

{env="sandbox"} |= "error" or "fatal"

Is the bug inside a dashboard panel?

no

Environment (with versions)?

Grafana: Grafana v10.3.3 (2527612)
OS: Windows 11 Pro
Browser: Chrome 123.0.6312.106 (Official Build) (64-bit)

Grafana platform?

None

Datasource(s)?

No response

@matyax
Copy link
Contributor

matyax commented Apr 16, 2024

@norcalspearo Thanks for reporting this. What is your Loki version?

@ivanahuckova ivanahuckova added needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc datasource/Loki labels Apr 18, 2024
@norcalspearo
Copy link
Author

norcalspearo commented Apr 26, 2024

@matyax , Loki version is 2.9.3-510

@norcalspearo
Copy link
Author

LokiError

@matyax
Copy link
Contributor

matyax commented Apr 29, 2024

@norcalspearo Grafana frontend has support for the feature, but Loki needs to be 3+. Apologies for the confusion!

@matyax matyax closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Loki needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc
Projects
None yet
Development

No branches or pull requests

3 participants