Any particular reason the log rotation config files where changed to only rotate when the file reaches 5G minsize instead of having it rotate daily like before?
Current logrotate config for the /var/log/asterisk folder
/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban {
daily
rotate 2
minsize 5G
missingok
compress
delaycompress
notifempty
sharedscripts
create 0640 asterisk asterisk
su asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
/var/spool/mail/asterisk {
daily
missingok
rotate 2
minsize 100M
notifempty
sharedscripts
create 0660 asterisk mail
su asterisk mail
}
/var/log/asterisk/queue_log {
daily
missingok
rotate 30
notifempty
sharedscripts
create 0640 asterisk asterisk
su asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
@PitzKey had already mentioned something about this here: Log file "full" is missing - #13 by PitzKey on that VitalVersion minsize was set to 500M also changing the daily rotation the system had before.
I guess we can make the changes manually ourselves, but just wanted to know why the change to the default. In my opinion, I think i prefer the daily rotation without the need for the file to reach a minimum size.