[asterisk-users] cdr-custom/Master.csv rotation

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jun 15 02:23:23 CDT 2008


On Sat, Jun 14, 2008 at 08:49:04PM -0700, Darryl Dunkin wrote:
> It's like asking for directions, and someone tells you to drive,
> useless.
> 
> Here is what we do here:
> Create /etc/logrotate.d/asterisk:
> /var/log/asterisk/asterisk-verbose /var/log/asterisk/messages
> /var/log/asterisk/debug /var/log/asterisk/queue_log {
>     daily
>     rotate 7
>     compress
>     missingok
>     notifempty
>     sharedscripts
>     postrotate
>         /usr/local/bin/log_rot_ast
>     endscript
> }
> 
> /usr/local/bin/log_rot_ast contains:
> #!/bin/sh
> /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>&1

"logger reload" rotates logs. But not CSV . That's because the CSV CDR
files are not held open.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list