[asterisk-users] rotate of logfiles

Jonas Kellens jonas.kellens at telenet.be
Thu Dec 2 02:44:50 CST 2010


Hello list.

This is not a life-threatening question, but still quite important for 
debugging.

I have the following crontab :
15 0,8,12,17 * * * /usr/sbin/asterisk -rx 'logger rotate'

Because I have debug level 9, logfiles get quite large.

I notice that the rotation of the logfiles goes to plan, except at 17h15.

I currently have :

-rw-r--r-- 1 root root     59024 Dec  2 09:36 messages.vps.hosting       
--> 8h15 till now
-rw-r--r-- 1 root root         0 Dec  2 02:02 
messages.vps.hosting.0         --> empty
-rw-r--r-- 1 root root     54137 Dec  2 08:14 messages.vps.hosting.1    
--> 0h15 till 8h15
-rw-r--r-- 1 root root    283286 Dec  1 17:14 messages.vps.hosting.2  
--> 12h15 till 17h15
-rw-r--r-- 1 root root    255762 Dec  1 12:14 messages.vps.hosting.3  
--> 8h15 till 12h15
-rw-r--r-- 1 root root         0 Dec  1 02:02 
messages.vps.hosting.4         --> empty
-rw-r--r-- 1 root root     67777 Dec  1 08:12 messages.vps.hosting.5    
--> 0h15 till 8h15
-rw-r--r-- 1 root root    315654 Nov 30 17:14 messages.vps.hosting.6  
--> 12h15 till 17h15
-rw-r--r-- 1 root root    290819 Nov 30 12:13 messages.vps.hosting.7  
--> 8h15 till 13h15
-rw-r--r-- 1 root root         0 Nov 30 02:02 
messages.vps.hosting.8        --> empty
-rw-r--r-- 1 root root     44291 Nov 30 08:08 messages.vps.hosting.9   
--> 0h15 till 8h15


I'm missing a logfile covering 17h15 till 0h15... and I have empty 
logfiles...

Using asterisk 1.6.2.10.


Thanks for your feedback.

Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101202/bc417a5f/attachment.htm 


More information about the asterisk-users mailing list