It handles files it knows about. The killers are the ones it doesn't: MySQL slow-query logs, Docker JSON logs (unbounded by default), and nginx logs an app writes to a custom path.
I've watched a $5 box hit 100% disk from /var/lib/docker/containers/*/*-json.log while logrotate sat there clueless.
— set max-size/max-file in Docker daemon.json
— du -sh /var/log/* /var/lib/docker monthly
Don't trust the defaults. Try it tonight.
Root Access Daily
@RootAccessDaily
"logrotate keeps my disk from filling"
This post was published in the Telegram channel Root Access Daily (@RootAccessDaily). All its posts are on the channel page.
Open on Telegram