Nginx: error_log & access_log & rewrite_log

 

GoAccess:

 

GoAccess - 中文站 - 可视化 Web 日志分析工具

 

goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%Y-%b-%d' --log-format=combined

 

 

error_log 属于 Core functionality                        Core functionality (nginx.org)

access_log 属于 ngx_http_log_module             Module ngx_http_log_module (nginx.org)

rewrite_log 属于 ngx_http_rewrite_module       Module ngx_http_rewrite_module (nginx.org)

 

error_log:

  

默认error级别, 如果使用debug级别, 必须添加编译支持, 默认编译选项没有开启debug

 

stderr 特殊值指代编译时 --error-log-path=/var/log/nginx/error.log 指定值

 

access_log:

 

 

 

 

 

 

 

posted @ 2022-05-14 09:44  ascertain  阅读(113)  评论(0编辑  收藏  举报