Logging & Journald
Stop journald from dumping your logs into a black hole
🧩 The Challenge
You finally need to dig up a service crash from last Tuesday, but your server rebooted this morning and everything is gone. Nothing is more infuriating than realizing your logs were only living in a volatile memory buffer.
💡 The Fix
Flip the storage setting in your journald config to force everything to persistent disk so your history survives a cold boot. It is an easy win for post-mortem sanity.
mkdir -p /var/log/journal && systemctl restart systemd-journald
⚙️ Why It Works
By creating that directory, you force systemd to stop using the default volatile memory-only mode and start writing logs to physical storage. The restart then picks up the change without needing a full reboot.
🚀 Pro-Tip: Check your journal usage with journalctl –disk-usage so you don’t accidentally fill up your root partition.
Linux Tips & Tricks | © ngelinux.com | 9/7/2026
