1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00

30 lines
561 B
YAML
Raw Normal View History

2019-10-30 20:04:37 +08:00
name: example rule
2019-11-01 09:14:24 +08:00
is_enabled: true
2019-10-30 16:11:49 +08:00
es_host: elasticsearch
es_port: 9200
type: frequency
index: logstash-*
2019-10-30 18:57:53 +08:00
doc_type: _doc
use_count_query: true
2019-10-30 20:04:37 +08:00
num_events: 10
2019-10-30 18:57:53 +08:00
2019-10-30 16:11:49 +08:00
timeframe:
2019-10-30 23:40:46 +08:00
minutes: 5
realert:
minutes: 60
2019-10-30 16:11:49 +08:00
filter:
- query:
query_string:
query: 'response:[500 TO *]'
alert:
2019-10-30 23:40:46 +08:00
- command:
command: [echo, bad, things, happen]
2019-10-30 20:04:37 +08:00
- slack:
slack_webhook_url: https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX
slack_username_override: ElastAlert
slack_channel_override: '#monit'
slack_emoji_override: ':bell:'