4 ssl_certificate => "/var/lib/logstash/lumberjack.crt"
5 ssl_key => "/var/lib/logstash/lumberjack.key"
10 ssl_certificate => "/var/lib/logstash/beats.crt"
11 ssl_key => "/var/lib/logstash/beats.key"
16 if [type] == "apache" {
18 match => [ "message", "%{COMBINEDAPACHELOG} %{NUMBER:duration:int}us %{NOTSPACE:request_id} %{NOTSPACE:ssl_protocol} %{NOTSPACE:ssl_cipher}" ]
21 match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
25 remove_field => [ "agent" ]
33 match => { "agent" => "%{JOSM:[useragent][name]=JOSM}/%{POSINT:[useragent][major]}\.%{POSINT:[useragent][minor]} \(%{POSINT:[useragent][patch]} \w+\) " }
34 overwrite => [ "[useragent][name]", "[useragent][major]", "[useragent][minor]", "[useragent][patch]" ]
38 rename => { "agent" => "[useragent][raw]" }
41 } else if [type] == "rails" {
46 "[parameters][authenticity_token]",
47 "[parameters][pass_crypt]",
48 "[parameters][pass_crypt_confirmation]",
54 code => "event['duration'] = Integer(event['duration'] * 1000000)"
59 code => "event['db'] = Integer(event['db'] * 1000000)"
64 code => "event['view'] = Integer(event['view'] * 1000000)"
69 if [host] =~ /^spike-/ {
71 add_tag => [ "frontend" ]
73 } else if [host] =~ /^thorn-/ {
75 add_tag => [ "backend" ]
82 hosts => [ "127.0.0.1" ]