Adding logstash image with pre-install of elasticsearch_groom

This commit is contained in:
Geoff Bourne
2015-04-12 11:09:49 -05:00
parent 57ca565d64
commit 5792b2996a
2 changed files with 50 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
input {
heartbeat {
type => 'groom'
interval => 11
add_field => {
scope => 'open'
cutoff => '4w'
action => 'close'
}
}
}
output {
if [type] == 'groom' {
elasticsearch_groom {
host => 'es:9200'
index => 'logstash-%{+YYYY.MM.dd}'
scope => '%{scope}'
age_cutoff => '%{cutoff}'
action => '%{action}'
}
}
}