X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cef8ee4e81a60e0f53401740afedfa560d2f4607..85fe9aab2a52542caf1c9479ee627b25a5762a28:/cookbooks/logstash/templates/default/logstash.conf.erb diff --git a/cookbooks/logstash/templates/default/logstash.conf.erb b/cookbooks/logstash/templates/default/logstash.conf.erb index c036c1f7a..cd5a7d24a 100644 --- a/cookbooks/logstash/templates/default/logstash.conf.erb +++ b/cookbooks/logstash/templates/default/logstash.conf.erb @@ -39,6 +39,16 @@ filter { ] } } + + if [host] =~ /^spike-/ { + mutate { + add_tag => [ "frontend" ] + } + } else if [host] =~ /^thorn-/ { + mutate { + add_tag => [ "backend" ] + } + } } output {