Skip to content

Rule not triggering alert. #1480

Closed Locked Answered by jertel
manishparmar5751 asked this question in Q&A
Discussion options

You must be logged in to vote

I just started up a fresh instance of ElastAlert 2 and loaded this single rule:

name: flatline15
enabled: true
type: flatline
index: "this_index_does_not_exist"
filter:
- query:
    match_all: {}
threshold: 1
timeframe:
  seconds: 20
alert:
- debug
realert:
  minutes: 1

After about 25 or so seconds I saw the alert fire. So I know that both ElastAlert 2 version 2.18.0, and the rule I pasted above both work. I suggest using that as a template and verifying you are seeing the same behavior, then move on to customizing your rule.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@manishparmar5751
Comment options

@jertel
Comment options

@manishparmar5751
Comment options

@jertel
Comment options

Answer selected by manishparmar5751
@manishparmar5751
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants