Hi, I need some help on how to manage the "full" log file. It's getting quite large now and I'd like to clear it. Is there any simple command for this or should I just delete the file (need to be sure this won't affect the system). Also - how do I keep the log file from growing so large? Thanks! Regards, Jan
We've been using logrotate without any issue... We're using the below quoted configuration. Notice the invocation of Asterisk's CLI "logger reload" command so as to close the old files and open new ones. Cheers, -- Ex Vito /var/log/asterisk/messages /var/log/asterisk/queue_log /var/log/asterisk/event_log { weekly rotate 52 dateext compress delaycompress nocreate missingok sharedscripts postrotate /usr/sbin/asterisk -rx "logger reload" endscript }
Hi Jan, You should use the logrotate in order to delete the log on periodic intervals. This article is meant to do exactly the opposite :) astrecipes.net/index.php?n=205 but you get an idea of how to setup log file rotation and how to notify Asterisk that it should open a new file after the log rotation. Hope this helps l. On Mon, 08 Jan 2007 13:00:52 +0100, <jan.sarin@securia.se> wrote:> Hi, > > I need some help on how to manage the "full" log file. It's getting > quite large now and I'd like to clear it. Is there any simple command > for this or should I just delete the file (need to be sure this won't > affect the system). > > Also - how do I keep the log file from growing so large? > > Thanks! > > Regards, > Jan >-- Loway Research - Home of QueueMetrics queuemetrics.loway.it