Plesk

How to configure a storage period for statistics

Question

By default, on the Plesk server, web and traffic statistics are stored for 3 months.

How to increase this storage period?

Answer

Using Plesk:

  1. Log into Plesk

  2. Go to Service Plans > select a plan > Logs & Statistics tab.

  3. Specify the number of months required for the parameter Retain web and traffic statistics.

  4. Click Update & Sync to apply the changes.

    Note: Service plan changes will be applied to the newly created subscriptions. For existing subscriptions refer to the command-line solution.

Using a command-line interface:

  1. Log in to the Plesk server via SSH or RDP

  2. Execute the command below, where "Example" is a service plan name and "X" is a number of months for storing statistics:

  • for Linux

    # plesk bin service_plan -u "Example" -keep_traf_stat X

  • for Windows:

    C:> plesk bin service_plan -u "Example" -keep_traf_stat X

To apply changes to the existing subscription, use the following command

  • for Linux

    # plesk bin subscription_settings --update example.com -keep_traf_stat  X

  • for Windows:

    C:> plesk bin subscription_settings --update example.com -keep_traf_stat  X