- Plesk 12.5 for Linux
- Plesk Onyx for Linux
How to force Plesk to rotate logs more often?
Plesk rotates logs once per day—when Daily Maintainance task is being run.
To make log rotation more often, log rotation task might be scheduled:
- Navigate to Tools & Settings > Scheduled Tasks ;
- Click on Add Task ;
- Add the following text to the Command field:
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteStatistics
- Set to run task Hourly and click on Ok .
Note: This modification might result in performance degradation if the server has a lot of domains.