Skip to content

Commit

Permalink
Merge pull request #754 from nsano-rururu/docs_update
Browse files Browse the repository at this point in the history
update docs Negation, and, or
  • Loading branch information
jertel authored Mar 5, 2022
2 parents 00c06b5 + 523217a commit 6698479
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- Remove download_dashboard - [#740](https://github.com/jertel/elastalert2/pull/740) - @nsano-rururu
- [Docs] Added documentation for metric|spike aggregation rule types for percentiles - [e682ea8](https://github.com/jertel/elastalert2/commit/e682ea8113bf9f413b6339e6803b5262881f2b30)- @jertel
- [Jira] Add support for Jira authentication via Personal Access Token - [#750](https://github.com/jertel/elastalert2/pull/750) - @buzzdeee
- [Docs] Update docs Negation, and, or - [#754](https://github.com/jertel/elastalert2/pull/754) - @nsano-rururu

# 2.3.0

Expand Down
16 changes: 0 additions & 16 deletions docs/source/recipes/writing_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,6 @@ For ranges on fields::
Negation, and, or
*****************

Any of the filters can be embedded in ``not``, ``and``, and ``or``::

filter:
- or:
- term:
field: "value"
- wildcard:
field: "foo*bar"
- and:
- not:
term:
field: "value"
- not:
term:
_type: "something"

Below is a more complex example for Elasticsearch 7.x, provided by a `community user. <https://github.com/jertel/elastalert2/discussions/330>`_::

filter:
Expand Down

0 comments on commit 6698479

Please sign in to comment.