I only keep 7 logs in .gz format. There is one caveat, when your version of asterisk changes due to upgrade, it will mv /etc/logrotate.d/asterisk to /etc/logrotate.d/asterisk-rpmsave. You will then have to rm -f asterisk and mv asterisk-rpmsave asterisk in /etc/logrotate.d
thanks …I have not tried compressed options… before … I will do a test… The rotate option, seems to be working now, but still have a list of FULL.xx files… which would like to remove …
Hi,
You can try to delete the files you don’t want:
For example:
cd /var/log/asterisk
rm -f freepbx.log-20220720
Might find there are a bunch of files with the -log-some-date’ like
queue_log-20220820
rm -f queue_log-*
that is just an example.
If you cleaned out the extraneous log and you have the compressed option enabled in /etc/logrotate.d/asterisk as shown above, you should start seeing files with the .gz suffix.
Cheers
You might also look at the logs if they are much larger than you expect. Possible situations include pjsip logger or sip debug inadvertently left on, attackers hammering on your system, devices repeatedly becoming unreachable and reachable, etc.