Skip to content

Instantly share code, notes, and snippets.

@adamchal
Created March 6, 2012 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamchal/1988173 to your computer and use it in GitHub Desktop.
Save adamchal/1988173 to your computer and use it in GitHub Desktop.
Nginx Collapsing Empty Variables in Access Log
log_format main
'$server_name'
' $msec'
' $remote_addr'
' $http_user_agent'
' $cookie_uid'
' $cookie_sid'
' $cookie_lis'
' $cookie_ffs'
' $device_map'
' $request_method'
' $host'
' $uri'
' $args'
' $http_referer'
' $request_length'
' $gzip_ratio'
' $status'
' $request_time'
' $bytes_sent'
' $upstream_addr'
' $upstream_cache_status'
' $upstream_response_time';
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