• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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