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>>
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.