From e0b82253159cd6edfb0aa03804ab9c0673f6abb0 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Sun, 28 Sep 2025 01:34:17 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-09-28=2001:34:17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 55 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4472b26..5d0b779 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -119,30 +119,53 @@ http { log_format detailed_proxy escape=json '{' '"@timestamp":"$time_iso8601",' + '"request_id":"$request_id",' '"remote_addr":"$remote_addr",' - '"request":"$request",' - '"status":$status,' - '"body_bytes_sent":$body_bytes_sent,' - '"request_time":"$request_time",' - '"upstream_addr":"$upstream_addr",' - '"upstream_status":"$upstream_status",' - '"upstream_response_time":"$upstream_response_time",' - '"upstream_cache_status":"$upstream_cache_status",' + '"real_ip":"$http_x_forwarded_for",' + '"remote_user":"$remote_user",' + '"request_method":"$request_method",' + '"request_uri":"$request_uri",' + '"request_protocol":"$server_protocol",' + '"request_length":$request_length,' '"http_referer":"$http_referer",' '"http_user_agent":"$http_user_agent",' - '"http_x_forwarded_for":"$http_x_forwarded_for",' - '"server_name":"$server_name",' - '"host_header":"$host",' + '"args":"$args",' + '"limit_rate":"$limit_rate",' + '"status":$status,' + '"body_bytes_sent":$body_bytes_sent,' + '"bytes_sent":$bytes_sent,' '"scheme":"$scheme",' '"ssl_protocol":"$ssl_protocol",' '"ssl_cipher":"$ssl_cipher",' + '"ssl_session_id":"$ssl_session_id",' + '"ssl_server_name":"$ssl_server_name",' + '"ssl_sess_id":"$ssl_sess_id",' + '"ssl_serial":"$ssl_serial",' + '"ssl_session_reused":"$ssl_session_reused",' + '"ssl_client_verify":"$ssl_client_verify",' + '"is_bad_bot":"$is_bad_bot",' + '"block_request":"$block_request",' + '"server_name":"$server_name",' + '"host_header":"$host",' + '"server_addr":"$server_addr",' + '"server_port":"$server_port",' + '"request_time":$request_time,' + '"pipe":"$pipe",' + '"connection":"$connection",' + '"connection_requests":"$connection_requests",' + '"upstream_connect_time":"$upstream_connect_time",' + '"upstream_header_time":"$upstream_header_time",' + '"upstream_response_time":"$upstream_response_time",' + '"upstream_addr":"$upstream_addr",' + '"upstream_status":"$upstream_status",' + '"upstream_response_length":$upstream_response_length,' + '"upstream_cache_status":"$upstream_cache_status",' + '"compression_ratio":"$gzip_ratio",' + '"open_file_cache_status":"$open_file_cache_status",' + '"sent_http_cache_control":"$sent_http_cache_control",' '"geoip_country_code":"$geoip2_country_code",' '"geoip_city_name":"$geoip2_city_name",' - '"geoip_isp":"$geoip2_isp",' - '"is_bad_bot":"$is_bad_bot",' - '"block_request":"$block_request",' - '"compression_ratio":"$gzip_ratio",' - '"request_id":"$request_id"' + '"geoip_isp":"$geoip2_isp"' '}'; log_format suspicious_bot 'SUSPICIOUS_BOT: $remote_addr - "$http_user_agent" - "$request"';