Skip to content

Instantly share code, notes, and snippets.

@iamstoick
Created January 3, 2020 13:03
Show Gist options
  • Save iamstoick/dfa1222cabee4443801aa517090510b4 to your computer and use it in GitHub Desktop.
Save iamstoick/dfa1222cabee4443801aa517090510b4 to your computer and use it in GitHub Desktop.
Pantheon nginx-access.log Grok pattern
%{IPORHOST:remoteaddress} - - \[%{HTTPDATE:timelocal}\]  "%{WORD:httpmethod} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) (?:"(?:%{URI:referrer}|-)"|%{QS:referrer}) %{QS:useragent} %{BASE10NUM:request_duration} %{QS:xforwardedfor}
@iamstoick
Copy link
Author

Or

%{IPORHOST:remoteaddress} - - \[%{HTTPDATE:timelocal}\]  "%{WORD:httpmethod} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) "%{URI:referrer}" %{QS:useragent} %{BASE10NUM:request_duration} %{QS:xforwardedfor}

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