must_not is not working for some of the alerts #1422
Replies: 1 comment
-
Everything in the filter block is sent directly to Elasticsearch as-is. Therefore any filter issues or questions are better directed at the Elasticsearch community as they'll be better experienced in identifying mistakes or reasons for your observed behavior. From an ElastAlert 2 perspective I suggest enabling debug logging so you can capture the exact query being sent to Elasticsearch. Then take that same query and compare it to a similar, working search in Elasticsearch Discover's Inspect panel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have various elastalert rules that use must_not filter, but they are working fine for some of cases & for others this is not working.
Sample file:
For this alert, the count that I am getting in mail is not correct. The count matches if we disable the must_not filter.
Similar filter is working for other rules. There are 5-10 alerts out of 100 alerts that have this issue.
Expected Behaviour:
If the filter would we working fine, we have 0 hits that match this filter for 30 minutes, hence we should not be receiving mails.
Current Behaviour:
I got the mail with hit count value that matched with below filter
Any idea what is wrong with the filter that it is not working for some cases?
Beta Was this translation helpful? Give feedback.
All reactions