Apache Log Viewer的3.31版增加可自定义日志格式功能。
Nginx
log_format common ‘$host $remote_addr [$time_local] “$request” $status $body_bytes_sent “$http_referer” “$http_user_agent” $http_x_forwarded_for’;
对应的配置:
LogFormat “%v %h %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” \”%{X-Forwarded-For}i\””
2015 © DONY. ALL Rights Reserved. 闽ICP备09025082号-1
相关评论
我要评论