How to force Plesk to rotate logs more often?
Plesk rotates logs once per day, during the Daily task.
To make log rotation more often, log rotation task might be scheduled in addition to the Daily:
Note: This modification might result in performance degradation if the server has a lot of domains: statistics are analyzed alongside with the log rotation.
Navigate to Tools & Settings > Scheduled Tasks.
Click on Add Task.
Add the following text to the Command field:
To rotate logs for all domains:
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteStatistics
To rotate logs for a single domain:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
Set to run task Hourly and click on Ok.