1、log日志格式
log_format mylogs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent $request_body "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'
'$upstream_addr $upstream_response_time $request_time
2、注解
$remote_addr
$remote_user
$request
$status
$body_bytes_sent
$bytes_sent
$connection
$connection_requests
$msec
$pipe
$http_referer
$http_user_agent
$request_length
$request_time
$time_iso8601
$time_local
$upstream_response_time
3、request_time
4、upstream_response_time