Huge volume of aggregated web statistics file '
Web-statistics recalculation utility selects '
access.log' file, then copies it to the special storage '
access_log.webstat'. Then, '
access_log.webstat' is analyzed by statistics processor. After analyze is finished file should be cut to zero.
When web statistics engine is set to '
None' in the domain settings, the file '
access_log.webstat' is not being processed and therefore its size constantly increases.
This was considered as a software issue #PPPM-1115, fixed in Plesk 11.5.30 MU#27.
Install Plesk microupdates in order to fix the issue.
As a workaround, use the script below. It selects domains with web-statistics utility set to '
None' and cuts '
access_log.webstat' files to zero for them:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -Ne"select d.name from domains d join hosting h on h.dom_id=d.id where h.webstat='none'"|while read d; do > /var/www/vhosts/system/$d/logs/access_log.webstat;done
Put it to an executable file and configure a cron job to launch it every day.
Please also refer to the following articles that might be helpful:
KB #118799 error_log occupies too much space and not being rotated
KB #116474 Missing log rotation configuration file