Make log format compatible to combined format for analysis with tools

This commit is contained in:
Daniel Winzen
2017-07-23 14:27:38 +02:00
parent 10542504e2
commit f162720cb6

View File

@ -42,7 +42,7 @@ http {
## ##
# Logging Settings # Logging Settings
## ##
log_format custom '[$time_iso8601] $status $bytes_sent "$request_method $request_uri" "$http_referer" "$http_user_agent"'; log_format custom '0.0.0.0 - $remote_user [$time_local] "$request_method $request_uri" $status $bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log custom; access_log /var/log/nginx/access.log custom;
error_log /var/log/nginx/error.log notice; error_log /var/log/nginx/error.log notice;
log_not_found off; log_not_found off;