diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b8d25e1..bbe86f7 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -140,6 +140,30 @@ http { '"request_id":"$request_id",' '"hostname":"$hostname",' '"worker_pid":$pid,' + + # Informações de Conexão e Cliente + '"remote_addr":"$remote_addr",' + '"remote_port":$remote_port,' + '"server_addr":"$server_addr",' + '"server_port":"$server_port",' + '"real_ip":"$http_x_forwarded_for",' + '"http_x_real_ip":"$http_x_real_ip",' + '"remote_user":"$remote_user",' + + # Detalhes da Requisição HTTP + '"request":"$request",' + '"request_method":"$request_method",' + '"scheme":"$scheme",' + '"server_protocol":"$server_protocol",' + '"host_header":"$host",' + '"request_uri":"$request_uri",' + '"uri":"$uri",' + '"document_uri":"$document_uri",' + '"args":"$args",' + '"query_string":"$query_string",' + '"request_length":$request_length,' + + '}'; log_format suspicious_bot 'SUSPICIOUS_BOT: $remote_addr - "$http_user_agent" - "$request"';