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

Add support for or in line filters #131

Open
kelnage opened this issue Feb 28, 2024 · 0 comments
Open

Add support for or in line filters #131

kelnage opened this issue Feb 28, 2024 · 0 comments
Labels
backend Related to changes to the query backend enhancement New feature or request

Comments

@kelnage
Copy link
Collaborator

kelnage commented Feb 28, 2024

Loki has added support for an or operator to combine equality line filters, which would remove the need to convert them into regular expressions. I.e., previously to require a line contains either A or B you had to use:

|~ `A|B`

This meant we needed to escape the values A and B (in case they contained regular expression meta-characters). Now we can instead use:

|= `A` or `B`
@kelnage kelnage added enhancement New feature or request backend Related to changes to the query backend labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to changes to the query backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant