Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for must_not #1351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix for must_not #1351

wants to merge 2 commits into from

Conversation

dkamen
Copy link

@dkamen dkamen commented Sep 22, 2017

You could not say:
filter:
must_not:
other_criteria

because everything would go under a global "must": array. This fix addresses the issue, essentially exposing the must_not part of the DSL to ElastAlert. Any other type of query is treated as before, going inside the "must" array.

You could not say:
filter:
     must_not: 
              other_criteria

because everything would go under a global "must": array. This fix addresses the issue.
fixed typo in previous
@YoavBZ
Copy link

YoavBZ commented Oct 3, 2017

You can simply put your must_not in a bool field instead:

filter:
- bool:
  must_not:
  - other_criteria

@Qmando
Copy link
Member

Qmando commented Oct 3, 2017

You seem to have removed half of the file as part of the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants