Plesk for Windows
kb: how-to
Plesk for Linux
ABT: Group B
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
By default, on the Plesk server, web and traffic statistics are stored for 3 months.
How to configure the web and traffic statistics storage period in Plesk?
Answer
For a Service Plan
- Log into 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.
For a Service Plan using CLI
- Connect to the server via SSH or RDP
-
Execute the command below, where "Example" is the service plan name and "X" is a number of months for storing statistics:
# plesk bin service_plan -u "Example" -keep_traf_stat X
To apply changes to an existing subscription, use the following command:
# plesk bin subscription_settings --update example.com -keep_traf_stat X
Server-Wide
- Log into Plesk
- Go to Tools & Settings > Info & Statistics > Server Settings (top right corner button)
- Increase the Retain web and traffic statistics for value
- Press Save
Comments
looking to do this for an existing domain. we've already done the entire server, but that doesn't change existing domains.
Please sign in to leave a comment.