]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/logstash/templates/default/logstash.conf.erb
nominatim: temporarily disable cleanup of WAL archive
[chef.git] / cookbooks / logstash / templates / default / logstash.conf.erb
index c036c1f7aab61c23e38b05edcd2198b59df863ad..cd5a7d24ab901095d28cfe3239b57932eb815f41 100644 (file)
@@ -39,6 +39,16 @@ filter {
       ]
     }
   }
+
+  if [host] =~ /^spike-/ {
+    mutate {
+      add_tag => [ "frontend" ]
+    }
+  } else if [host] =~ /^thorn-/ {
+    mutate {
+      add_tag => [ "backend" ]
+    }
+  }
 }
 
 output {