Skip to content

Instantly share code, notes, and snippets.

@nguse
Created March 6, 2017 16:55
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 nguse/96624d47b5c7ca4921d3c2c1d36e42ff to your computer and use it in GitHub Desktop.
Save nguse/96624d47b5c7ca4921d3c2c1d36e42ff to your computer and use it in GitHub Desktop.
Varnishcsa grok pattern
^%{IPORHOST:clientip} - %{USER:auth} \[(?<timestamp>%{MONTHDAY}/%{MONTH}/%{YEAR}:%{TIME} %{TZ})\] \"(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})\" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent}$
@nguse
Copy link
Author

nguse commented Mar 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment