loggingopenlitespeedgoaccess

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.

Log Format Configuration GoAccess

ERROR GoAccess

OpenLiteSpeed Config


Solution

  • 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
    

    enter image description here