Last year, I installed Asterisk 10.4.2 and enabled logrotate on daily basis which was working perfect. Now in couple of months back, the logrotate feature is not working at all but simply appending the logs in ‘messages’
file. Listing down down the configuration for logrotate below;
missingok rotate 5
/usr/sbin/asterisk -rx ‘logger reload’ > /dev/null 2> /dev/null endscript
As asterisk is running by user: root so no need set asterisk permissions
‘create 0640 asterisk asterisk’ in above configuration.
Please advise so I can resolve this issue.