Calculating Statistics from Logs

Plesk calculates traffic usage statistics from logs every day using the statistics utility.

If you need to recalculate traffic usage statistics, you can run the statistics utility manually. It is located in the /usr/local/psa/admin/sbin/(on RPM-based OSes) or /opt/psa/bin (on DEB-based OSes) statistics directory.

To recalculate statistics for all domains, run the utility without options or with the --calculate-all option:

# ./statistics --calculate-all

To recalculate statistics for a particular domain, run the utility with the --calculate-one option:

# ./statistics --calculate-one --domain-name=<<strong class="placeholder">domain_name</strong>>