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 if [host] =~ /^spike-/ {
50 add_tag => [ "frontend" ]
52 } else if [host] =~ /^thorn-/ {
54 add_tag => [ "backend" ]
61 hosts => [ "127.0.0.1" ]