Ultimate guide to configure logrotate utility

Generally speaking Logs are very much important part of any troubleshooting activity, However these logs grows in size with time. In this case we need to perform log cleanup manually in order to reclaim the space and its tedious task to administer these logs. To overcome this we can configure logrotate utility available in Linux which automatically does rotation, compression , removal and mailing of logfile.

We can configure logrotate utility so that each log file may be handled daily, weekly, monthly,or when it grows too large.