For servers with Plesk Panel on it:
To set the log rotation in Plesk, you can use the help of the below articles.
For servers without Plesk Panel on it:
You can refer to the below URLs to set the policy in Linux.
=======
https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/
However, in Windows, each service creates its separate file for example in case if you want to set the rotation policy for SQL related logs, it would be managed from the SQL management studio, and for IIS (IIS Manager >> choose site >> click on logging), you can refer to the below URLs for that.
=====
https://stackoverflow.com/questions/54988925/sql-server-2016-log-rotation
https://itefix.net/logwot8#:~:text=Logrotate%20allows%20for%20the%20automatic,Linux%2Dlike%20environment%20for%20Windows.
=====