Free-space driven log rotation on linux?
Posted
by
kdt
on Server Fault
See other posts from Server Fault
or by kdt
Published on 2012-03-23T17:05:07Z
Indexed on
2012/03/23
17:31 UTC
Read the original article
Hit count: 259
Someone just asked me 'how long should we keep logs for our application', and my answer was 'until the disk is full' as there's no reason to throw them away other than running out of space.
However, standard logrotate wants us to specify a specific period + number of rotations. Is there something similar that would let us say "rotate daily, and keep as much history as you like until there is only 5% space free"?
The platform is Redhat Linux.
© Server Fault or respective owner