docs/victorialogs/logsql.md: document OR syntax in the _stream filter#1373
Open
vadimalekseev wants to merge 1 commit into
Open
docs/victorialogs/logsql.md: document OR syntax in the _stream filter#1373vadimalekseev wants to merge 1 commit into
vadimalekseev wants to merge 1 commit into
Conversation
func25
reviewed
May 6, 2026
Comment on lines
+567
to
+571
| Multiple conditions inside `{...}` are combined with `and` logic by default - a log entry must match all of them: | ||
|
|
||
| ```logsql | ||
| {app="nginx",env="prod"} | ||
| ``` |
Member
There was a problem hiding this comment.
Could you clarify that AND conditions inside stream filters are written as comma-separated conditions, not with the and keyword, to avoid ambiguity?
I think we should avoid writing and in inline code and use "AND condition" or comma-separated condition instead. It may be clearer to say both "AND condition" and "OR condition" in plain text.
Btw, I don't know the reason for not supporting the and keyword in stream filters. The error message is also incorrect:
return nil, fmt.Errorf("unexpected token %q in _stream filter after %q; want 'or', 'and', '}' or ','", lex.token, f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents how AND and OR logic works inside stream filters, including operator precedence and usage with the
inoperators.