Last active
June 29, 2019 09:39
-
-
Save ilyachase/2dddc603a96d2725bf921fac81470105 to your computer and use it in GitHub Desktop.
Human-readable nginx log format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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