Skip to content
Permalink
Browse files

Syntax: Clarify that "!=" is an exception wrt. absent fields.

Also, consistent spacing around operators.
  • Loading branch information...
erik-humio committed Mar 1, 2019
1 parent 20cfab8 commit 82c31644e998c51371d43111fbd8fe4757c7372e
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/language-syntax/_index.md
@@ -153,9 +153,9 @@ named `200` and test if its value is `"statuscode"`.
{{% /notice %}}

{{% notice warning %}}
If the specified field is not present in an event, then the comparison always fails.
If the specified field is not present in an event, then the comparison always fails -- unless it is `!=`.
You can use this behavior to match events that do not have a given field,
using either `not (foo=*)` or the equivalent `foo!=*` to find events
using either `not (foo = *)` or the equivalent `foo != *` to find events
that do not have the field `foo`.
{{% /notice %}}

0 comments on commit 82c3164

Please sign in to comment.
You can’t perform that action at this time.