The error logs in /var/log/asterisk are not rotating as desired. It seems like they are rotating with the default settings. 7 days with no file size limit. I want to change this so they rotate every 5 days and limit the logs size to 50MB as in if the log reaches 50MB it purges. how can this be done? I have freepbx as well and trying to modify the /etc/asterisk/logger.conf and all the custom .conf’s with it but their is literally no write ups on how to modify these files. So I modified the /etc/logrotate/logger.d/asterisk to include:
but this has had no affect. What do I do here?!