• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

AWstats and restored access_log.processed

B

blank

Guest
How to get /usr/local/psa/admin/sbin/statistics to process a restored access_log.processed file?
After restoring web statistics and concatenating all into one large access_log.processed file, now I get error:

statistics: cannot seek /var/www/vhosts/[xxx].com/statistics/logs/access_log.processed at required position: Invalid argument

Already tried deleting the webstat directory, to no avail.. BTW the file is over 3.3 GB.

Any ideas?
 
OK after fiddling around, I found a workaround.. I think there's a slight possibility to lose some statistics but this is basically what it takes to get it working:
- from the Plesk backups gunzip+untar the logs
- concatenate all the logs together
- copy to statistics/logs/access_log.processed-all
- cat access_log>>access_log.processed-all && mv -f access_log.processed-all access_log && /sbin/service httpd graceful

It seems the Plesk statistics only looks at the access_log file and not the processed file. And oh, it runs log rotation on all domains even if you specify --calculate-one.

I need to do this for dozens of domains so obviously this needs to be completely scripted, I may post the script later..

Edit: but only static statistics pages for 2010 are generated, not for 2009.. Sounds like tedious to do manually even with scripting, is there any other solution?!
 
Last edited by a moderator:
Back
Top