Replies: 2 comments 2 replies
-
There's a possibility this could occur depending on how ElastAlert's run time correlates to the event times. Imagine the following timeline of minutes with the corresponding
In this situation while there are 6 events within a minute span (00:01:30 - 00:02:30), this could still trigger two alerts, if ElastAlert 2 runs the rule at 00:03:00, since it will see 3 events in the first 1m timerange window (00:01:00 to 00:02:00) and then 3 more events in the next 1m window (00:02:00 to 00:03:00). So both timerange windows would have hit the threshold and caused an alert to be sent for each one. |
Beta Was this translation helpful? Give feedback.
-
First of all thanks for the answer with the quite nice visualization. So i guess maybe i misunderstood they way elastaler2 works. Just to check, based on your answer, lets say i a have a config like as follow:
something like the following will happen the buffer_time will specify the query time range that will happen on 00:00:03 and 00:00:06 and then the buffer_time is divided into time_frames and num_events is compared with number of events happened in each time_frame. But my problem is that even when all the events happen at the same time_frame still i get more than one match. and for example in case of
there must be no way to get more than 1 match/alert? right? but i still get more than one alert even for this setting. to be precise if the there is n event i get n match. Is this the intended behaviour or am i doing something wrong? should i try to solve this problem by modifying |
Beta Was this translation helpful? Give feedback.
-
I have a config like this
if have 3 documents in the past 1 min i get 1 match and one alert BUT, if i have 6 documents in past 1 min then i would get 2 matches and two alerts. in general is seems the number of match and alerts is equal to something like
floor(number_of_docs / num_events)
. is it the expected behaviour or am i doing something wrong? cause based on definition of the frequency rule in documents it seems to i should get one alert if the number of documents stored in my index is more than 3 in the past 1 minute, regardless of how many more than 3.Beta Was this translation helpful? Give feedback.
All reactions