Skip to content

Instantly share code, notes, and snippets.

@undeadcat
Last active November 16, 2015 01:02
Show Gist options
  • Save undeadcat/711ae32c7d42b67cc372 to your computer and use it in GitHub Desktop.
Save undeadcat/711ae32c7d42b67cc372 to your computer and use it in GitHub Desktop.
nginx grok pattern
%{TIMESTAMP_ISO8601:log_timestamp}\t%{NOTSPACE:msec}\t%{NOTSPACE:host}\t%{WORD:request_method}\t%{NOTSPACE:path}\t%{NOTSPACE:querystring}\t%{NOTSPACE:referer}\t%{IPORHOST:remote_addr}\t(?<user_agent>[^\t]*?)\t%{NOTSPACE:cookie_sid}\t%{NUMBER:status_code}\t%{NUMBER:request_time:float}\t%{NUMBER:request_length:int}\t%{NOTSPACE:asp_net_sessionid}\t%{NOTSPACE:cookie_token}\t%{NOTSPACE:upstream_address}\t%{NUMBER:bytes_sent:int}\t%{NOTSPACE:upstream_response_time:float}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment