question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elastalert 'spike' rule alerting on 0 events being greater than 0 events

See original GitHub issue

I 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:open
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pezzakcommented, Mar 7, 2018

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.

0reactions
ashishkaransinghcommented, Mar 16, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found