On Mon, Sep 12, 2005 at 01:00:45PM +1000, YT Lim wrote:
> Does anyone know how to limit syslog file size?
> Logrotate only rotates log files (i.e. irrelevant of
> file size), and a log file size can grow extremely
> large before it is rotated.

Logrotate is invoked (by default) as a daily cron job and then decides if 
it should rotate/delete logs . Usually it only rotates by dates, but it 
can also rotate by log file size.

Still, it won't monitor the log files constantly and rotate as soon as
the logs reach a certain size, if that is what you need.

Weekly rotation is usually good enough. Daily rotation won't save you
enough time behind. Try to make your programs less verbose.

-- 
Tzafrir Cohen         | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |                           | a Mutt's  
[EMAIL PROTECTED] |                           |  best
ICQ# 16849755         |                           | friend
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to