Skip to content

Instantly share code, notes, and snippets.

@ryanschuhler
Last active August 10, 2016 16:48
Show Gist options
  • Save ryanschuhler/aa575f8d7e4fc4a4c2435fec2e2c0ced to your computer and use it in GitHub Desktop.
Save ryanschuhler/aa575f8d7e4fc4a4c2435fec2e2c0ced to your computer and use it in GitHub Desktop.
LogFormat "%h %l %u %t %m %f %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%U\" \"%q\" %T %D %{ANONYMOUS_USER_ID}C %{JSESSIONID}C %{hubspotutk}C %{OSB_USER_ID}C %{OSB_COMANY_ID}C” liferay
match => { "message" => "%{IPORHOST:client_ip} (?:%{WORD:remote_log_name}|-) (?:%{WORD:remote_user_id}|-) \[%{HTTPDATE:timestamp}\] %{WORD:request_method}%{GREEDYDATA:file_name} %{NUMBER:request_status} (?:%{NUMBER:bytes:int}|-) \"(?:%{DATA:referrer}|-)\" \"(?:%{DATA:user_agent}|-)\" \"(?:%{DATA:relative_path}|-)\" \"(?:%{DATA:query_string}|-)\" %{NUMBER:time_in_seconds:int} %{NUMBER:time_in_micro_seconds:int}” }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment