Created
May 17, 2018 16:11
-
-
Save thomaspuppe/3fe3dac1f23bbf33a5e54ca94946b49e to your computer and use it in GitHub Desktop.
NginX log_format without IP and shit
This file contains 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
## | |
# 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