QUERY syntax is as follows: EXPRESSION [QUERY_OPERATOR QUERY].
QUERY_OPERATOR possible values are:
AND,OR.
EXPRESSION syntax is as follows: KEY EXPRESSION_OPERATOR VALUE.
KEY possible values are:
- Custom string starting with
[a-zA-Z]and containing[a-zA-Z0-9_\-\.], *corresponding to any key.
Please note there is also a special shortcut for a label key: you can use ~ instead of label. (i.e. ~component is equal to label.component).
EXPRESSION_OPERATOR possible values are:
=,!=(equality) is used for string (string_fields) and numerical (number_fields) values. IfVALUEis in quotes, only string values will be considered. IfVALUEhas%or_characters,LIKEis used for comparison.>,<,>=,<=(comparison) is used for numerical values only.=~,!~(regular expression) is used for string values only.MATCHis used for comparison.!~search entries that does not match regular expression.is true,is falseis used for boolean values (boolean_fields) only.is null,is not nullis used to match a key having corresponding value in NULL values (null_fields).
P.S. All built-in operators (is true, is null, etc) are case insensitive. There may be spaces before and after operators.
host=kube-1 and log.level > 10* =~ kube-[1-9]log !~ (warning|info)~component = clickhouselog = %error% or log != %success%unhealthy is truestatus is null