'Openlitespeed log format for GoAccess
Im trying since hours to find an working Openlitespeed Log config to run with GoAccess. Also did not found any topic regarding openlitespeed logging with goaccess.
Example: Common Log Format (CLF) "%h %l %u %t "%r" %>s %b"
Common Log Format with Virtual Host "%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"
Tried all.
Solution 1:[1]
I just want to share this setting with you which works in my case.
OpenLiteSpeed access log format:
%h %l %u %t \"%r\" %>s %b
Access log output example:
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eric |

