nginx logging

This commit is contained in:
Zsolt Ero
2024-10-24 02:35:49 +02:00
parent d18f58e2cd
commit f04ebd395e
3 changed files with 12 additions and 15 deletions

View File

@@ -23,9 +23,8 @@ server {
ssl_prefer_server_ciphers off;
# access log doesn't contain IP address
# disabled by default
#access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=32k;
access_log off;
#access_log off;
access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=128k;
error_log /data/ofm/http_host/logs_nginx/le-error.log;

View File

@@ -23,9 +23,8 @@ server {
ssl_prefer_server_ciphers off;
# access log doesn't contain IP address
# disabled by default
#access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=32k;
access_log off;
#access_log off;
access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=128k;
error_log /data/ofm/http_host/logs_nginx/ledns-error.log;

View File

@@ -47,16 +47,16 @@ http {
# general
'"time": "$time_iso8601", '
'"status": $status, '
'"request_method": "$request_method", '
'"uri": "$uri", '
'"request": "$request", '
'"request_time": $request_time, '
#'"request_method": "$request_method", '
#'"uri": "$uri", '
#'"request": "$request", '
#'"request_time": $request_time, '
'"body_bytes_sent": $body_bytes_sent, '
'"http_referrer": "$http_referer", '
'"http_user_agent": "$http_user_agent", '
'"scheme": "$scheme", '
'"host": "$host", '
'"http_host": "$http_host", '
#'"scheme": "$scheme", '
#'"host": "$host", '
#'"http_host": "$http_host", '
# IP address related
# IP address logging is disabled
@@ -71,9 +71,8 @@ http {
'"_": "_"' # helper for no trailing comma
'}';
# access log disabled by default
#access_log /data/nginx/logs/nginx-access.log access_json buffer=32k;
access_log off;
#access_log /data/nginx/logs/nginx-access.log access_json buffer=128k;
include /data/nginx/config/*;
include /data/nginx/sites/*;