For servers with Plesk Panel on it:
In order to set the log rotation in Plesk you can use the help of below articles.

For servers without Plesk Panel on it:

You can refer to the below URLs to set the policy in Linux

However in windows each service creates its separate file for example incase if you want to set the rotation policy for SQL related logs it would be manage from the SQL management studio and for IIS ( IIS Manager >> choose site >> click on logging ), you can refer to the below URLs for that.
Was this article helpful?
Thank you!