How to Setup Log rotation settings in Plesk?
Plesk rotates logs using the logrotate utility. This is located in the $PRODUCT_ROOT_D/logrotate/sbin/logrotate directory, where the $PRODUCT_ROOT_D is /usr/local/psa for RPM-based systems or /opt/psa on DEB-based systems.
1) Log in to Plesk panel.
2) Click on the option ‘Websites and Domains’.
3) Click the icon ‘Logs’ under the domain for which you want to change log rotation settings.
4) Click the icon on the top right and click ‘Manage Log Files’.
5) Click the button ‘Log Rotation’.
6) It will take you to the “Structure” tab for the database where you can select the table you want to optimize. Check the box in front of each one, or click on “Select All” option if you want to optimize all of them.
7) On the drop down box that says “with selected” select “Optimize Table”.
8) This will optimize the table and take you to a new screen where you can see the list of tables you have optimized.