The problem
On a fresh SSD a single log file can grow fast enough to fill the drive in minutes.
Typical culprits are:
- Systemd journal when
systemd-journaldis left to write to/var/log/journal/without limits. - Application logs that never rotate, e.g.
nginx,docker,postgres, or custom scripts. - Debug or verbose modes that are left enabled in production.
When the disk is full, services stop, new writes fail, and the machine can become unresponsive. Below is a hands‑on guide that shows how to stop a log file from filling an SSD in 5 minutes, using tools that are already part of most distributions.
[Read More]