Apache Log Viewer的3.31版增加可自定义日志格式功能

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\””


相关评论

暂无评论

我要评论