Created
June 20, 2014 17:22
-
-
Save shurane/49b6444edd84641b83fc to your computer and use it in GitHub Desktop.
apache log with https and virtualhost logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
generator { | |
type => "generated" | |
message => '127.0.0.1 - - [16/Jun/2014:06:25:16 -0400] "POST /this/is/a/sample/path.php HTTP/1.1" 200 3891 "https://www.example.com/foo/bar/qux/baz.php?f=file&active=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0" on www.example.com' | |
count => 1 | |
} | |
} | |
filter { | |
grok { | |
match => { "message" => "%{COMBINEDAPACHELOG} %{NOTSPACE:https} %{NOTSPACE:virtualhost}" } | |
} | |
} | |
output { | |
stdout { codec => rubydebug } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment