Skip to content

Instantly share code, notes, and snippets.

@geraldvillorente
Created January 3, 2020 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geraldvillorente/dfa1222cabee4443801aa517090510b4 to your computer and use it in GitHub Desktop.
Save geraldvillorente/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}
@geraldvillorente
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