I wanted to send out an alert to our slack channel if a there is an indexing error or the number of events > 20 for last 10 minutes. Below is my elastalert yaml configuration.
influx_indexing_error_slack_message_rule: |-
---
es_host: elk.org.my.com
es_port: 9200
name: failure message
index: logstash-influxdb*
type: frequency
num_events: 20
timeframe:
minutes: 10
realert:
minutes: 15
filter:
- exists:
field: "error.keyword"
alert:
- "slack"
slack related detail
Will this work real time ? I don't see much of a documentation covering the exists conditions, hence reached out to you experts here.
I went thru - Writing Filters For Rules — ElastAlert 0.0.1 documentation