Skip to content

Instantly share code, notes, and snippets.

@thomaspuppe
Created May 17, 2018 16:11
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 thomaspuppe/3fe3dac1f23bbf33a5e54ca94946b49e to your computer and use it in GitHub Desktop.
Save thomaspuppe/3fe3dac1f23bbf33a5e54ca94946b49e to your computer and use it in GitHub Desktop.
NginX log_format without IP and shit
##
# Logging Settings in /etc/nginx/nginx.conf
##
log_format custom '$remote_user\t$time_local\t$request_time\t$host\t$request\t'
'$status\t$body_bytes_sent\t$http_referer\t$http_user_agent';
access_log /var/log/nginx/access.log custom;
error_log /var/log/nginx/error.log;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment