Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Created April 22, 2013 20:16
Show Gist options
  • Save garlandkr/5438129 to your computer and use it in GitHub Desktop.
Save garlandkr/5438129 to your computer and use it in GitHub Desktop.
grok pattern for varnish ncsa logs
VARNISHNCSALOG %{IPORHOST:remoteip} - - \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}" (?:%{NUMBER:status}|\(null\)) (?:%{NUMBER:bytes}|-) "(?:%{NOTSPACE:referrer}|-)" %{QUOTEDSTRING:agent}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment