Elastalert 'spike' rule alerting on 0 events being greater than 0 events
See original GitHub issueI am using elastalert HEAD as of today.
I am using this rule:
es_host: *******
es_port: 443
use_ssl: True
name: Mike Learning Two
type: spike
index: cwl-*
threshold: 2
timeframe:
minutes: 1
spike_height: 2
spike_type: "up"
filter:
- query:
query_string:
query: "status:404"
alert:
- "debug"
And it does indeed detect spikes. But sometimes it alerts with this message:
INFO:elastalert:Alert for Mike Learning Two at 2016-03-30T08:27:52.137927Z:
INFO:elastalert:Mike Learning Two
An abnormal number (0) of events occurred around 2016-03-30 08:27 UTC.
Preceding that time, there were only 0 events within 0:01:00
@timestamp: 2016-03-30T08:27:52.137927Z
reference_count: 0
spike_count: 0
Am I doing something wrong or is this a bug?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Elastalert 'spike' rule alerting on 0 events ... - Stack Overflow
Their answer was: Yeah. I guess this is sort of a bug. You should set either threshold_ref or threshold_cur instead of threshold. The...
Read more >Rule Types and Configuration Options - ElastAlert
spike : This rule matches when the volume of events during a given time period is spike_height times larger or smaller than during...
Read more >ElastAlert Documentation - Read the Docs
ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elastic- search.
Read more >How can I check my ElastAlert rule is configured correctly?
Making sure that your ElastAlert yaml file is formatted and configured ... you want to check your alert to ensure that any event...
Read more >ISTISS / elastalert · GitLab
Recent changes: As of Elastalert 0.2.0, you must use Python 3.6. ... the "spike" rule type, which allows you to alert when the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case it was a typing error: treshold_ref -> threshold_ref. And if threshold_ref and threshold_cur not set in config this alert will occur.
I am seeing this error too An abnormal number (0) of events occurred around 2021-03-16 15:54 UTC. Preceding that time, there were only 0 events within 0:02:00
num_hits: 0 num_matches: 1 placeholder: True reference_count: 0 spike_count: 0