logrotate vs journald vacuum
Two log monsters eat your tiny disk: app logs (nginx/php) and systemd's binary journal. They need different brooms.
— Text logs in /var/log: logrotate with compress + maxsize 50M
— Binary journal: journalctl --vacuum-size=200M or set SystemMaxUse=200M
logrotate won't touch journald, and people forget journald can quietly hoard 4GB. Set a cap on both. Check du -sh /var/log/journal tonight.
Root Access Daily
@RootAccessDaily
logrotate vs journald vacuum
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.