2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-31 10:07:24 +01:00

update elastalert

This commit is contained in:
kev
2019-10-30 16:11:49 +08:00
parent 32a80c9b5f
commit 3e1c0d9d79
11 changed files with 110 additions and 23 deletions

View File

@@ -0,0 +1,25 @@
name: Example rule
es_host: elasticsearch
es_port: 9200
type: frequency
index: logstash-*
num_events: 10
timeframe:
hours: 1
filter:
- query:
query_string:
query: 'response:[500 TO *]'
alert:
- command
command:
- echo
- "{match[@timestamp]} {match[message]}"