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

docs not clear about case sensitive expression and supported regex syntax #741

Closed
Dieterbe opened this issue Jul 11, 2019 · 2 comments · Fixed by #746
Closed

docs not clear about case sensitive expression and supported regex syntax #741

Dieterbe opened this issue Jul 11, 2019 · 2 comments · Fixed by #746

Comments

@Dieterbe
Copy link
Contributor

Hi, I read https://grafana.com/docs/features/datasources/loki/
It does not describe case sensitive of query expression (regex) part of the query.
In my experience, it is case sensitive. is there a way to make it insensitive? either way, seems like it could be described in the docs.

@Dieterbe
Copy link
Contributor Author

actually, it would also be beneficial to describe the dialect/syntax of regex supported.
for example, seems like alternation ("or" as in foo|bar) works, so seems like posix extended regex works

@Dieterbe Dieterbe changed the title docs not clear about case sensitive expression docs not clear about case sensitive expression and supported regex syntax Jul 11, 2019
@steven-sheehy
Copy link
Contributor

steven-sheehy commented Jul 11, 2019

Loki is not case insensitive by default, but can be by adding golang regex modifiers (?i) before the regex. I changed Grafana to add these by default when sending the query. But yes, more docs would be nice.

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

Successfully merging a pull request may close this issue.

2 participants