Awstat Error: LogFormat parameter setup does not match this format

I have migrated a Cpanel based website from one server to another but after migration, AWStat stopped updating. While updating AWstats was showing following error



When I checked the domlogs of the domain it shows following entries only

root@server [~]# cat /usr/local/apache/domlogs/domainname.com
combined
combined
combined
combined

I have searched online and found that the LogFormat was not properly defined in httpd.conf file, due to which apache was just logging the word “combined” over and over instead of the correct information.

To fix the issue

1) I have added following LogFormat in httpd.conf file

LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined


2)
Restarted Apache Service.

About: Mike

Milind Koyande loves to work on new technologies specially virtualization and troubleshoot server problems. I’m an avid photographer and love to spend my free time close to nature, trying to capture its glory on my camera.


One thought on “Awstat Error: LogFormat parameter setup does not match this format”

This site uses Akismet to reduce spam. Learn how your comment data is processed.