From 57a71f1730517519e8effc1bf1a67689c48e9b24 Mon Sep 17 00:00:00 2001 From: Garrett W Date: Thu, 11 Apr 2019 11:56:17 -0500 Subject: [PATCH 1/2] added stock log format --- pillar.example | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pillar.example b/pillar.example index 37a3302d..d0e4f05e 100644 --- a/pillar.example +++ b/pillar.example @@ -135,8 +135,10 @@ nginx: ### module ngx_http_log_module example log_format: |- - main '...'; - access_log /var/log/nginx/access_log main + main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + access_log /var/log/nginx/access.log main access_log: [] #suppress default access_log option from being added ### module nngx_stream_core_module From 3f89d5c329f5972f067722a1aa44c5f4ef4ad090 Mon Sep 17 00:00:00 2001 From: Garrett W Date: Thu, 11 Apr 2019 12:06:06 -0500 Subject: [PATCH 2/2] removing access_log from log_format --- pillar.example | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pillar.example b/pillar.example index d0e4f05e..b1936608 100644 --- a/pillar.example +++ b/pillar.example @@ -137,8 +137,7 @@ nginx: log_format: |- main '$remote_addr - $remote_user [$time_local] $status ' '"$request" $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /var/log/nginx/access.log main + '"$http_user_agent" "$http_x_forwarded_for"' access_log: [] #suppress default access_log option from being added ### module nngx_stream_core_module