- Plesk 12.5 for Windows
- Plesk Onyx
How to configure log rotation for a domain?
Log rotation for a domain can be configured using the Plesk UI or the command line.
Plesk > Domains > example.com > Logs > click the icon > Manage Log Files > Log Rotation:
Then click Log Rotation
When the Maximum number of log files is 0, the log files won't rotate. Change it to eg. 5
Or through the command line:
Connect to the server using SSH
Use the command below to enable log rotation on the domain example.com:
# plesk bin site --update example.com -log-rotate true
Additional options might be used to configure log rotation by size, by time or by the maximum number of log files (current and rotated):
-log-bysize <number>[B|K|M|G]Log rotation by size in bytes
-log-bytime <daily|weekly|monthly>Enables log rotation by time (default:
-log-max-num-files <number>Maximum number of log file instances
Additional information can be found in Plesk Documentation.