You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-08-08 22:27:53 +02:00
update elastalert
This commit is contained in:
@ -12,7 +12,7 @@ rules_folder: rules
|
||||
# How often ElastAlert will query elasticsearch
|
||||
# The unit can be anything from weeks to seconds
|
||||
run_every:
|
||||
seconds: 60
|
||||
minutes: 1
|
||||
|
||||
# ElastAlert will buffer results from the most recent
|
||||
# period of time, in case some log sources are not in real time
|
||||
|
25
elastalert/data/rules/example.yaml
Normal file
25
elastalert/data/rules/example.yaml
Normal 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]}"
|
Reference in New Issue
Block a user