We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
or
This PR added support for or expression to linefilters, making it easy to queries like following without using |~ regexp matcher.
|~
{job="varlogs"} |= "foo" or "bar"
instead of
{job="varlogs"} |~ "foo|bar"
But looks like it breaks when we have multiple linefilters.
example, {job="varlogs"} != "test" != "foo" or "bar"
{job="varlogs"} != "test" != "foo" or "bar"
behaving like {job="varlogs"} != "test" != "bar" (buggy)
{job="varlogs"} != "test" != "bar"
instead of {job="varlogs"} != "test" != "foo" != "bar" (correct. !(A || B) => !A && !B)
{job="varlogs"} != "test" != "foo" != "bar"
Have a working example in this gist.
My feeling is, when introducing the PR to support this, we probably missed supporting nested linefilters in linefilters grammer.
lineFilters: lineFilter { $$ = $1 } | lineFilter OR orFilter { $$ = newOrLineFilter($1, $3)} | lineFilters lineFilter { $$ = newNestedLineFilterExpr($1, $2) } ;
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This PR added support for
or
expression to linefilters, making it easy to queries like following without using|~
regexp matcher.{job="varlogs"} |= "foo" or "bar"
instead of
{job="varlogs"} |~ "foo|bar"
But looks like it breaks when we have multiple linefilters.
example,
{job="varlogs"} != "test" != "foo" or "bar"
behaving like
{job="varlogs"} != "test" != "bar"
(buggy)instead of
{job="varlogs"} != "test" != "foo" != "bar"
(correct. !(A || B) => !A && !B)Have a working example in this gist.
My feeling is, when introducing the PR to support this, we probably missed supporting nested linefilters in linefilters grammer.
The text was updated successfully, but these errors were encountered: