简体   繁体   English

GoAccess 的 Openlitespeed 日志格式

[英]Openlitespeed log format for GoAccess

Im trying since hours to find an working Openlitespeed Log config to run with GoAccess.我几个小时以来一直在努力寻找一个可以与 GoAccess 一起运行的 Openlitespeed 日志配置。 Also did not found any topic regarding openlitespeed logging with goaccess.也没有找到任何关于使用 goaccess 进行 openlitespeed 日志记录的主题。

Example: Common Log Format (CLF) "%h %l %u %t "%r" %>s %b"示例:通用日志格式 (CLF) "%h %l %u %t "%r" %>s %b"

Common Log Format with Virtual Host "%v %h %l %u %t "%r" %>s %b"虚拟主机的通用日志格式 "%v %h %l %u %t "%r" %>s %b"

NCSA extended/combined log format "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i" NCSA 扩展/组合日志格式 "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"

Tried all.都试过了

Log Format Configuration GoAccess日志格式配置 GoAccess

ERROR GoAccess错误

OpenLiteSpeed Config OpenLite 速度配置

I just want to share this setting with you which works in my case.我只想与您分享这个适用于我的情况的设置。

OpenLiteSpeed access log format: OpenLiteSpeed 访问日志格式:

%h %l %u %t \"%r\" %>s %b

Access log output example:访问日志output示例:

1.2.3.4 - - [21/Mar/2022:06:03:17 +0000] "GET / HTTP/1.1" 200 9555

goaccess command:访问命令:

goaccess /usr/local/lsws/logs/example.com.access_log -o /var/www/example.com/report.html --log-format='%h %^[%d:%t %^] "%r" %s "%R" "%u" %T %^' --date-format=%d/%b/%Y --time-format=%T  --real-time-html

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM