Stop journald from eating all your disk space
Logging & Journald
Stop journald from eating all your disk space
🧩 The Challenge
Dealing with a production box that keeps hitting 100 percent disk usage because journald is bloated is a special kind of hell. I have seen servers go completely dark because the logs grew into a multi-gigabyte monster.
💡 The Fix
You need to set a hard ceiling on how much space those binary log files can occupy so the OS doesn’t choke itself to death. It takes ten seconds to configure, and it saves you from midnight emergency cleanups.
sed -i 's/#SystemMaxUse=/SystemMaxUse=500M/' /etc/systemd/journald.conf && systemctl restart systemd-journald
⚙️ Why It Works
By editing the config file directly, you force the daemon to prune older logs once the total size hits that threshold. It’s a set-it-and-forget-it fix for a problem that shouldn’t even exist in the first place.
🚀 Pro-Tip: Use VacuumSize=200M in that same file if you need to shrink the current logs right now without rebooting.
Linux Tips & Tricks | © ngelinux.com | 12/3/2026
