Skip to content

Commit

Permalink
[DOCS] EQL: Minor doc fixes (#68927) (#68929)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig committed Feb 11, 2021
1 parent 7106f11 commit 1184f44
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/reference/eql/syntax.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,17 @@ the operator uses a case-sensitive lexicographic order.

NOTE: `=` is not supported as an equal operator. Use `==` or `:` instead.

You cannot chain comparison operators. Instead, use a
[discrete]
[[limitations-for-comparisons]]
=== Limitations for comparisons

You cannot chain comparisons. Instead, use a
<<eql-syntax-logical-operators,logical operator>> between comparisons. For
example, `foo < bar <= baz` is not supported. However, you can rewrite the
expression as `foo < bar and bar <= baz`, which is supported.

You also cannot use comparison operators to compare a field to another field.
This applies even if the fields are changed using a <<eql-functions,function>>.
You also cannot compare a field to another field, even if the fields are changed
using a <<eql-functions,function>>.

*Example* +
The following EQL query compares the `process.parent_name` field
Expand Down Expand Up @@ -217,9 +221,9 @@ Returns `true` if the condition to the right is `false`.

[source,eql]
----
user.name in ("Administrator", "SYSTEM", "NETWORK SERVICE")
user.name not in ("Administrator", "SYSTEM", "NETWORK SERVICE")
user.name : ("administrator", "system", "network service")
my_field in ("Foo", "BAR", "BAZ") // case-sensitive
my_field not in ("Foo", "BAR", "BAZ") // case-sensitive
my_field : ("foo", "bar", "baz") // case-insensitive
----

`in` (case-sensitive)::
Expand Down Expand Up @@ -792,7 +796,7 @@ recent sequence overwrites the older one.
* If the query includes <<eql-by-keyword,`by` fields>>, the query uses a
separate state machine for each unique `by` field value.

.*Example*
.*Example*
[%collapsible]
====
A data set contains the following `process` events in ascending chronological
Expand Down Expand Up @@ -1002,5 +1006,4 @@ Pending sequence matches move through each machine's states as follows:
// | +-----------+ +-----------+ +------------+ |
// +------------------------------------------------------+
----
====

0 comments on commit 1184f44

Please sign in to comment.