Skip to content

Instantly share code, notes, and snippets.

@shurane
Created June 20, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shurane/49b6444edd84641b83fc to your computer and use it in GitHub Desktop.
Save shurane/49b6444edd84641b83fc to your computer and use it in GitHub Desktop.
apache log with https and virtualhost logging
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