Skip to content

Instantly share code, notes, and snippets.

@marcinkuzminski
Last active December 16, 2015 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcinkuzminski/5459173 to your computer and use it in GitHub Desktop.
Save marcinkuzminski/5459173 to your computer and use it in GitHub Desktop.
custom format for nginx that mesures time of requests
log_format main '$remote_addr - $remote_user $request_time [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment