Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions docs/reference/eql/syntax.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ are not supported.
`:` (equal, case-insensitive)::
Returns `true` if strings to the left and right of the operator are equal.
Otherwise returns `false`. Matching is case-insensitive and can only be used to
compare strings. <<eql-syntax-wildcards,Wildcards>> are supported.
compare strings. Supports <<eql-syntax-wildcards,wildcards>> and
<<eql-syntax-lookup-operators,list lookups>>.

[IMPORTANT]
====
Expand Down Expand Up @@ -222,6 +223,7 @@ Returns `true` if the condition to the right is `false`.
----
user.name in ("Administrator", "SYSTEM", "NETWORK SERVICE")
user.name not in ("Administrator", "SYSTEM", "NETWORK SERVICE")
user.name : ("administrator", "system", "network service")
----

`in` (case-sensitive)::
Expand All @@ -232,6 +234,10 @@ matching is case-sensitive.
Returns `true` if the value is not contained in the provided list. For strings,
matching is case-sensitive.

`:` (case-insensitive)::
Returns `true` if the value is contained in the provided list. Can only be used
to compare strings.

[discrete]
[[eql-syntax-math-operators]]
===== Math operators
Expand Down Expand Up @@ -381,9 +387,17 @@ match specific patterns:

[source,eql]
----
field : "example*wildcard"
field : "*example-wildcard"
field : "example-wildcard*"
field : "f*o"
field : "*foo"
field : "foo*"
----

The `:` operator also supports wildcards in <<eql-syntax-lookup-operators,list
lookups>>:

[source,eql]
----
field : ("f*o", "*bar", "baz*", "qux")
----

[discrete]
Expand Down