rotate auth.log ubuntu

to rotate auth.log on ubuntu add the following to your /etc/logrotate.conf:


/var/log/auth.log {
rotate 5
daily
copytruncate
compress
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.