logrotate by size outside the daily schedule
- by Josh Smeaton
We have a couple of applications that generate huge log files. It's not enough to rotate those logs daily, so I created the following logrotate conf:
/var/log/ourapp/*log {
compress
copytruncate
missingok
size 200M
rotate 10
}
The idea is that we can keep 2GB of logs for this one application, no matter how quickly those files are…