My logrotate file on ubuntu runs daily. I want to make sure its rotating log files in every hour to get no full disk error anymore. So my logrotate file is in the cron.daily folder, is it enough to simply move it to cron.hourly?
I also want to keep my max log file size on 5MB, but Im not sure what to change in the logrotate.cnf.
logrotate.cnf content (without line breaks):
weekly rotate 4 create include /etc/logrotate.d
/var/log/wtmp { missingok monthly create 0664 root utmp rotate 1 }
/var/log/btmp { missingok monthly create 0660 root utmp rotate 1 }
I know I have to use size 5M, but where should I write it? Am I thinking good that the first line is for all log files and the second and third is for only wtmp and btmp? So if my logic is correct then I have to write size 5M in all line, am I right?