nginx 日志格式

log_format test '{ "http_host": "$http_host", "remote_addr": "$remote_addr", "local_time": "$time_local", "request": "$request", "http_code": "$status",  "request_time": "$request_time", "upstream_response_time": "$upstream_response_time" , "upstream_addr": "$upstream_addr" , "bg_http_code": "$upstream_status" }';
 access_log  /var/log/wwwlogs/access.log test;

你可能感兴趣的:(Nginx)