1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-07-05 09:31:24 +00:00
dockerfiles/elastalert/data/rules/example.yaml

28 lines
298 B
YAML
Raw Normal View History

2019-10-30 08:11:49 +00:00
name: Example rule
es_host: elasticsearch
es_port: 9200
type: frequency
index: logstash-*
2019-10-30 10:57:53 +00:00
doc_type: _doc
2019-10-30 08:11:49 +00:00
num_events: 10
2019-10-30 10:57:53 +00:00
use_count_query: true
2019-10-30 08:11:49 +00:00
timeframe:
hours: 1
filter:
- query:
query_string:
query: 'response:[500 TO *]'
alert:
- command
2019-10-30 10:57:53 +00:00
command: [echo, bad, things, happen]