4 ssl_certificate => "/var/lib/logstash/lumberjack.crt"
5 ssl_key => "/var/lib/logstash/lumberjack.key"
10 if [type] == "apache" {
12 match => [ "message", "%{COMBINEDAPACHELOG} %{NUMBER:duration:int}us %{NOTSPACE:request_id} %{NOTSPACE:ssl_protocol} %{NOTSPACE:ssl_cipher}" ]
15 match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
19 remove_field => [ "agent" ]
27 match => { "agent" => "%{JOSM:[useragent][name]=JOSM}/%{POSINT:[useragent][major]}\.%{POSINT:[useragent][minor]} \(%{POSINT:[useragent][patch]} \w+\) " }
28 overwrite => [ "[useragent][name]", "[useragent][major]", "[useragent][minor]", "[useragent][patch]" ]
32 rename => { "agent" => "[useragent][raw]" }
35 } else if [type] == "rails" {
40 "[parameters][authenticity_token]",
41 "[parameters][pass_crypt]",
42 "[parameters][pass_crypt_confirmation]",
48 code => "event['duration'] = Integer(event['duration'] * 1000000)"
53 code => "event['db'] = Integer(event['db'] * 1000000)"
58 code => "event['view'] = Integer(event['view'] * 1000000)"
63 if [host] =~ /^spike-/ {
65 add_tag => [ "frontend" ]
67 } else if [host] =~ /^thorn-/ {
69 add_tag => [ "backend" ]
76 hosts => [ "127.0.0.1" ]