5 ssl_certificate => "/var/lib/logstash/beats.crt"
6 ssl_key => "/var/lib/logstash/beats.key"
11 if [type] == "apache" {
13 match => [ "message", "%{COMBINEDAPACHELOG} %{NUMBER:duration:int}us %{NOTSPACE:request_id} %{NOTSPACE:ssl_protocol} %{NOTSPACE:ssl_cipher}" ]
16 match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
20 remove_field => [ "agent" ]
28 match => { "agent" => "%{JOSM:[useragent][name]=JOSM}/%{POSINT:[useragent][major]}\.%{POSINT:[useragent][minor]} \(%{POSINT:[useragent][patch]} \w+\) " }
29 overwrite => [ "[useragent][name]", "[useragent][major]", "[useragent][minor]", "[useragent][patch]" ]
33 rename => { "agent" => "[useragent][raw]" }
36 } else if [type] == "rails" {
41 "[parameters][authenticity_token]",
42 "[parameters][pass_crypt]",
43 "[parameters][pass_crypt_confirmation]",
49 code => "event['duration'] = Integer(event['duration'] * 1000000)"
54 code => "event['db'] = Integer(event['db'] * 1000000)"
59 code => "event['view'] = Integer(event['view'] * 1000000)"
64 if [host] =~ /^spike-/ {
66 add_tag => [ "frontend" ]
68 } else if [host] =~ /^thorn-/ {
70 add_tag => [ "backend" ]
77 hosts => [ "127.0.0.1" ]