[Asterisk-Users] Syslog file size

Tzafrir Cohen tzafrir at cohens.org.il
Mon Sep 12 02:13:08 MST 2005


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         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list