jeffmac
Guru
- Joined
- Jan 16, 2008
- Messages
- 230
- Reaction score
- 9
I have an Incredible PBX 13-13 up and running, but I noticed that the Asterisk logfiles are not "rotating".
I checked the Log File Settings, and I can see that "Rotate" is set (vs. Sequential, or Timestamp). After checking that I waited a few days, but the log never rotated.
So then I looked at logrotate.d, but noticed there was no reference to asterisk. So I lifted the asterisk file from logrotate.d on an older system, and copied it into logrotate.d. I didn't see anything in it that I thought needed to be different for my 13-13 system so I made no changes:
I still have not seen a logrotate occur. /var/log/asterisk/full still has its oldest entries (from 11/23).
I would appreciate any pointers.
Jeff
I checked the Log File Settings, and I can see that "Rotate" is set (vs. Sequential, or Timestamp). After checking that I waited a few days, but the log never rotated.
So then I looked at logrotate.d, but noticed there was no reference to asterisk. So I lifted the asterisk file from logrotate.d on an older system, and copied it into logrotate.d. I didn't see anything in it that I thought needed to be different for my 13-13 system so I made no changes:
Code:
/var/log/asterisk/*log {
missingok
rotate 5
weekly
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
/var/log/asterisk/full {
missingok
rotate 5
daily
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
/var/log/asterisk/cdr-csv/*csv {
missingok
rotate 5
monthly
create 0640 asterisk asterisk
}
/var/log/atftp.log {
missingok
rotate 5
monthly
create 0640 nobody nobody
I still have not seen a logrotate occur. /var/log/asterisk/full still has its oldest entries (from 11/23).
I would appreciate any pointers.
Jeff