nginx log format

log_format pre_search '$http_x_forwarded_for $remote_addr $remote_user [$time_local] $request_time_usec '

                   '"$request_method $request_uri" $host $status $body_bytes_sent $request_body '

                   '"$http_referer" "$http_user_agent"';

原文地址:https://www.cnblogs.com/allenhaozi/p/4737640.html