Search Our Database

How to manually calculate Plesk web statistics

Last updated on |
under |

Introduction

In Plesk, system statistics like disk and traffic usage, as well as web statistics, are updated automatically every 24 hours. However, there may be cases where the statistics are not updated, or you may need to generate the statistics manually instead of waiting for the next automatic update. Plesk provides a command-line utility that allows you to manually generate these statistics either for individual domains or for the entire server. This guide outlines the steps for manually generating disk and traffic usage data, web statistics, or both.

 

Prerequisites

  • Access to the Plesk server with administrator privileges.
  • Familiarity with using the command-line interface.

 

Step-by-step guide

Step 1: Log in to the Plesk server

Log in to your Plesk server using administrator credentials.

 

Step 2: Open the command-line interface

Once logged in, open the command prompt or terminal.

 

Step 3: Run the statistics command

You can generate statistics for either the whole server or specific domains. Use the appropriate command as shown below:

    • To generate disk and traffic usage data and web statistics for the entire server, run the following command:
plesk sbin statistics --calculate-all
    • To generate disk and traffic usage data and web statistics for a specific domain (e.g., example.com), use the following command:
plesk sbin statistics --calculate-one --domain-name=example.com
    • To generate only web statistics for a specific domain (e.g., example.com), execute the command:
plesk sbin statistics --generate-domain-webstat --domain-name=example.com

 

Conclusion

Manually generating Plesk statistics can be useful when the automated process fails or when you need immediate data updates. By following the steps above, you can quickly update disk, traffic, and web statistics either for individual domains or the entire server.

For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.

 

Source: www.plesk.com