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. IfVALUE
is in quotes, only string values will be considered. IfVALUE
has%
or_
characters,LIKE
is used for comparison.>
,<
,>=
,<=
(comparison) is used for numerical values only.=~
,!~
(regular expression) is used for string values only.MATCH
is used for comparison.!~
search entries that does not match regular expression.is true
,is false
is used for boolean values (boolean_fields
) only.is null
,is not null
is 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 = clickhouse
log = %error% or log != %success%
unhealthy is true
status is null