-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Spike alert not using specified timeframe for querying event counts #3041
Comments
We also recommend asking questions on the Gitter channel |
@nsano-rururu Thank you, I posted it there as well. However, after investigating this myself, I believe this actually is indicative of a bug in the verbose output. It seems that the verbose output is reporting the count from the
So I guess there are two bugs: |
You have to choose between continuing to use it as it is or fixing the bug yourself. |
OK I understand. It's not a major bug as it does not appear to affect the actual alert, just the verbose output. So it's definitely still usable as is. I will try to look into fixing it as I continue setting up new alerts for our systems. Thank you for your response and all your support of this project. |
Hello all, I did a few tests and it really seems that rules are executed based on run_every configuration and rule timeframe isn't respected. The following example is for
It means that these dates should be used for query itself.
I see that there exists function called set_starttime and it seems that it takes into validation timeframe or buffer_time but only when rule don't have option
Therefore the solution is to set scan_entire_timeframe in rule. |
When running a spike rule with the following configuration (and verbose stdout), the time window over which elastalert is counting events appears to be that of the
run_every
time interval as opposed to thetimeframe
interval.Global configuration: config.yaml
Spike rule configuration: web-traffic-spike.yaml
After allowing this to run for 3 days (thus clearly surpassing the initial timeframe duration), my stdout is still reporting as follows:
As you can see, the queries are only being performed over 5 min intervals (as defined for
run_every
), not 3 hours as specified fortimeframe
. Any idea on why this is happening?The text was updated successfully, but these errors were encountered: