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.

flatline alert doesn't send realert even though the event falls below the threshold at given intervals

See original GitHub issue

My flatline rule config:

type: flatline

use_strftime_index: true
index: systemcollectd-%Y.%m.%d

threshold: 1

timeframe:
   minutes: 10

query_key:
- "host"

filter:
- query:
   match:
    plugin: memory

alert:
- "email"

realert:
  minutes: 10

I need to get alerts if the collectd service didn’t send metrics for memory plugin in last 10 minutes. I started the collectd service and it is sending the metrics to elasticsearch, also I found the hits value in elastalert logs. Now I stopped the collectd service. So it doesn’t send any metrics to es. In the next 10 minutes, I got the first alert from the elastalert, but after that, I didn’t get any alerts for next 10 minutes event. Still, the service is down. I was waited more than half hour, but no luck.

Now I started the collectd service again, So it starts sending metrics. After few minutes I stopped the collectd service. This time also, I got only one alert for first 10 minutes event. After that even though the service was down more than half hour, I didn’t get any alerts for this flatline rule. Can you assist me to solve this problem?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Qmandocommented, Aug 3, 2016

Unexpected by most people. Though it has been know for a long time. https://github.com/Yelp/elastalert/issues/13

0reactions
Qmandocommented, Oct 3, 2016

This should be fixed by #751

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Flatline Alerts for Elasticsearch
A Flatline alert matches when the total number of events is under a given threshold for a time period. The threshold is the...
Read more >
elasticsearch - ElastAlert fires even without a match
After looking at the logs, figured out it was trying to query @timestamp for the time ranges, whereas my time data was in...
Read more >
ElastAlert flatline alert when data - Sameera De Silva
flatline : This rule matches when the total number of events is under a given threshold for a time period. This rule requires...
Read more >
Rule Types and Configuration Options - ElastAlert
This is applied to the time the alert is sent, not to the time of the event. It defaults to one minute, which...
Read more >
Build a flatline rule to alert on missing data from beats agent
This guide covers how to send an email (or syslog) alert when an important data flow from a beats agent falls below a...
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