I’m running two asterisk servers. I’m running 1.8. I have the logs going to /var/log/asterisk and from there it is logging in full, full.0 full.1 etc.
Mysteriously on Sunday both servers rotated the log and then promptly stopped logging anything. I haven’t been able to figure out to to restart the logs. Any ideas for what needs to be kicked in order to start logging again?
So here is what I have
logger show channels
Channel Type Status Configuration
/var/log/asterisk/full File Enabled - DEBUG NOTICE WARNING ERROR VERBOSE DTMF
/var/log/asterisk/messages File Enabled - NOTICE WARNING ERROR
Console Enabled - NOTICE WARNING ERROR
But as of nothing is being written to the logs. I’ve reloaded logger, so I’m not sure what might be causing the issue.
Fixed the issue. It was a permissions issue. Turns out the file was owned by root instead of the asterisk user. Not sure why that happened, but changing the permissions fixed the issue. So I’m set.
sounds like the logrotate file is not correct
should look similar
create 0640 asterisk asterisk
/usr/sbin/asterisk -rx ‘logger reload’ > /dev/null 2> /dev/null