To do something like awstats or similar will require the access log being setup to the same universal standards as cPanel is in the LS/OLS config.
Looks unset by default.
Should look something like this when set:
[root@]# grep logFormat /usr/local/lsws/conf/httpd_config.xml
%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
[root@]#
LS
OLS
https://openlitespeed.org/kb/customize-log-format/
cPanel has it setup with the below:
LogFormat (combined)
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
LogFormat (common)
%h %l %u %t "%r" %>s %b
Notice the cPanel format “LogFormat (combined)” is almost exactly the same as the
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
NCSA extended/combined log format
"%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"
The difference being the preceding " in the front of the NCSA extended/combined log format.
Once something like this is standardized in cyberpanel there are tons of cool scripts which will make parsing these for stats super easy.
@usmannasir Is this something we can implement?