Maintain a healthy amount of free disk space (30GB or more) by adjusting the minsize and rotate values located in the log rotation policy file /etc/logrotate.d/messages-and-auth. You may also have to increase the size of the root { / ) file system if you are holding more and larger files for a longer period of time.
/var/log/messages {
minsize 10M
daily
rotate 10
compress
delaycompress
notifempty
}
/var/log/auth.log {
minsize 10M
daily
rotate 10
compress
delaycompress
notifempty
postrotate
/usr/bin/systemctl restart rsyslog.service
endscript
}
minsize <size>
Log files are rotated when they grow larger than the specified size but not before the specified time interval.
rotate <number>
Indicates how many times to rotate before deleting a file.