Article ID: 113762, created on Apr 25, 2012, last review on May 10, 2014

  • Applies to:
  • Plesk 10.x for Linux
  • Plesk 9.x for Linux/Unix
  • Plesk 8.x for Linux/Unix


Two cases are possible:

Case 1: AWStats is showing incorrect statistics, mistake is > 5%.

Case 2: AWStats statistics is partially incorrect, mistake is < 5%.


Causes for the above cases are different:

Case 1: AWStats log format is wrong.

Case 2: Some records in log files are corrupted.


Resolution is also different:

Case 1:  Open /etc/awstats/awstats.conf file and make sure that LogFormat is set to 1.

Case 2: According to official Awstats documentations records can be corrupted for several reasons:

"Corrupted records are records that do not match the log format defined by the "LogFormat" parameter in the AWStats configuration file. All web servers will typically have a few corrupted records (<5%) even when everything works correctly. This can result for several reasons:
1) Web server internal bugs,
2) bad requests made by buggy browsers,
3) a dirty web server shutdown, such as unplugging the server...

You can find corrupted records with this command:
# perl -config=<DOMAIN_NAME> -LogFile=/var/www/vhosts/<DOMAIN_NAME>/statistics/logs/access_log.processed -showcorrupted

More information about AWStats and its configuration is available here:

dd0611b6086474193d9bf78e2b293040 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 b8ef5052d936e902043e41759118114e 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF