X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cef8ee4e81a60e0f53401740afedfa560d2f4607..ecb5d5beac1e41d30e47daa6a034c59b33027d12:/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 {