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"
}
}
"[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-/ {