Nginx 日志打印POST数据

nginx日志格式配置:

log_format access escape=json '$remote_addr - $remote_user [$time_local] "$request" - "$request_body" '
                         '"$status" $body_bytes_sent "$http_referer" '
                         '"$http_user_agent" "$http_x_forwarded_for" '
                         '"$upstream_addr" "$upstream_status" "$request_time" "$upstream_response_time" $bytes_sent $request_length';
作者:admin  创建时间:2024-12-07 14:00
最后编辑:admin  更新时间:2025-01-08 21:40