[asterisk-users] Manage 'full' log file

Ex Vitorino ex.vitorino at gmail.com
Mon Jan 8 05:09:57 MST 2007


  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
  }


More information about the asterisk-users mailing list