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:
-
Go to Service Plans > select a plan > Logs & Statistics tab.
-
Specify the number of months required for the parameter Retain web and traffic statistics.
-
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:
-
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