Skip to content

Instantly share code, notes, and snippets.

@ilyachase
Last active June 29, 2019 09:39
Show Gist options
  • Save ilyachase/2dddc603a96d2725bf921fac81470105 to your computer and use it in GitHub Desktop.
Save ilyachase/2dddc603a96d2725bf921fac81470105 to your computer and use it in GitHub Desktop.
Human-readable nginx log format
log_format app '[$time_local]\t$msec\t Remote addr: $remote_addr\t Forwarded-for: "$proxy_add_x_forwarded_for"\t Hostname: $hostname\t Method: $request_method\t Scheme: $scheme\t Host: $host\t Request uri: $request_uri\t'
'Request Id: $request_id\t Request length: $request_length\t "Referer: $http_referer"\t User-Agent: "$http_user_agent"\t Request filename: $request_filename\t Body bytes sent: $body_bytes_sent\t'
'Status: $status\t Request time: $request_time\t Auth token: $arg_auth_token\t Http authorization: $http_authorization';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment