]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/logstash/templates/default/logstash.conf.erb
Bump cookstyle from 6.15.5 to 6.15.9
[chef.git] / cookbooks / logstash / templates / default / logstash.conf.erb
index fc577b9b42646038f09a6cdcf300dd004c8c605e..cbc8c909bb89543cc3cebd638bead0e3a3998626 100644 (file)
@@ -1,8 +1,9 @@
 input {
 input {
-  lumberjack {
-    port => 5043
-    ssl_certificate => "/var/lib/logstash/lumberjack.crt"
-    ssl_key => "/var/lib/logstash/lumberjack.key"
+  beats {
+    port => 5044
+    ssl => true
+    ssl_certificate => "/var/lib/logstash/beats.crt"
+    ssl_key => "/var/lib/logstash/beats.key"
   }
 }
 
   }
 }
 
@@ -43,6 +44,21 @@ filter {
         "[parameters][utf8]"
       ]
     }
         "[parameters][utf8]"
       ]
     }
+    if [duration] {
+      ruby {
+        code => "event['duration'] = Integer(event['duration'] * 1000000)"
+      }
+    }
+    if [db] {
+      ruby {
+        code => "event['db'] = Integer(event['db'] * 1000000)"
+      }
+    }
+    if [view] {
+      ruby {
+        code => "event['view'] = Integer(event['view'] * 1000000)"
+      }
+    }
   }
 
   if [host] =~ /^spike-/ {
   }
 
   if [host] =~ /^spike-/ {