[CentOS] Controlling log file sizes

Ian Forde ian at duckland.org
Sat Apr 11 22:14:43 UTC 2009


On Sat, 2009-04-11 at 22:25 +0100, Anne Wilson wrote:
> My fetchmail and procmail log files are getting rather large, and there's 
> really no reason to keep entries for ever.  How do others handle this?  I know 
> I could manually delete the older stuff then re-save the file, but it doesn't 
> seem a good method.

Use logrotate - it's built-in.  Check the files in /etc/logrotate.d/ for
examples, as well as the logrotate man page...

	-I




More information about the CentOS mailing list