Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created October 17, 2017 01:43
Show Gist options
  • Save miguelmota/c0ed91988db8009f9c749cc40e72001c to your computer and use it in GitHub Desktop.
Save miguelmota/c0ed91988db8009f9c749cc40e72001c to your computer and use it in GitHub Desktop.
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
NGINX_ACCESS %{IPORHOST:remote_addr} - %{USERNAME:remote_user} \[%{HTTPDATE:time_local}\] \"%{DATA:request}\" %{INT:status} %{NUMBER:bytes_sent} \"%{DATA:http_referer}\" \"%{DATA:http_user_agent}\"
Raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment