Something wrong with the rules #1298
-
name: nginx
feishu_webhook: "xxx" alert_text: | These are my rules, I think the alarm should only be triggered if num_matches is greater than 100, but when the alarm comes out, I find the value of num_matches is 1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Please see #11 and reformat your question/rule so its indentation and syntax is accurately represented. |
Beta Was this translation helpful? Give feedback.
num_matches
only includes the count in the current rule run. Since your spike of events spanned several minutes, the rule run that triggered the alert found 18 matches. Internally, ElastAlert 2 added this 18 to the previous rule run matches (from the previous few minutes) and that total exceeded the 100 num_events value, so it sent the alert.Again,
num_matches
is only showing the current query matches, not the combined queries from previous runs.