]> git.openstreetmap.org Git - chef.git/commitdiff
Remove message field from rails log after parsing it
authorTom Hughes <tom@compton.nu>
Fri, 24 Jul 2015 18:10:17 +0000 (19:10 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 24 Jul 2015 18:10:17 +0000 (19:10 +0100)
cookbooks/logstash/templates/default/logstash.conf.erb

index 68c9fd9210d9b589c5f4a5b2b01b1b2714a3126e..e4546bb013b98e87923b06ac3807e94d942d5791 100644 (file)
@@ -18,6 +18,9 @@ filter {
     json {
       source => "message"
     }
+    mutate {
+      remove_field => [ "message" ]
+    }
   }
 }