On Thursday 23 December 2004 2:03 am, Umar Draz wrote:
> i want my /var/log/message file automatically clean when it reach 
> 600KB so please help me how i do this log rotation? 

http://ursine.dyndns.org/cgi-bin/dwww?search=logrotate

Check out the documentation.  I believe there are several examples of 
how to rotate by file size.  Be aware that logrotate gets run by cron 
once a day, so the earliest your logs will be rotated is the next time 
run-parts cron.daily gets run.

-- 
Paul Johnson
[EMAIL PROTECTED]
http://ursine.dyndns.org/~baloo/

Attachment: pgpJAbjgrN6yL.pgp
Description: PGP signature

Reply via email to