- Log in to Plesk Admin.
- Go to Tools & Settings > Server Settings.
- Enable the following setting: Force daily log rotation for all domains and select how many days of logs to keep, e.g., 2 or 3 days. I chose 3 days.
or do it via SSH;
plesk bin settings -s logrotate_force=true
plesk bin settings -s logrotate_period=3
The “3” means 3 days. Set it to 3 days, that is sufficient.
There is also a source here that can be examined. On the official Plesk site.
Additionally, if error logs etc. have accumulated, to trigger log cleanup immediately;
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteStatistics
run this command.