码迷,mamicode.com
首页 > 其他好文 > 详细

nginx 打印详细请求

时间:2019-05-28 14:16:34      阅读:290      评论:0      收藏:0      [点我收藏+]

标签:cap   ddr   esc   amp   gen   iso   style   stream   cos   

log_format main escape=json { "@timestamp": "$time_iso8601", 
                       "remote_addr": "$remote_addr",
                       "costime": "$request_time",
                       "realtime": "$upstream_response_time",
                       "status": $status,
                       "x_forwarded": "$http_x_forwarded_for",
                       "referer": "$http_referer",
                       "request": "$request",
                       "upstr_addr": "$upstream_addr",
                       "bytes":$body_bytes_sent,
                       "dm":$request_body,
                       "agent": "$http_user_agent" };

 

nginx 打印详细请求

标签:cap   ddr   esc   amp   gen   iso   style   stream   cos   

原文地址:https://www.cnblogs.com/rubekid/p/10936883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!