Logrotate setup
How to setup logrotate There are several applications which do not have in build capability to rotate the logs and purge the old logs. Lets take example of apache, You may need to rotate its log and purge old one and zip the current one. It's not possible to truncate the apache log when its running, You will need to handle in via logotate command. Here is the way you can setup logrotate for an application. Here I am taking example of apache, You can change it as per your need