Disk

Running out of space

Journal logs

# Verify disk usage by journalctl logs
journalctl --disk-usage

# If high, do the following to delete logs older than N days
journalctl --vaccum-time-Nd

# Restrict the size of journal logs
journalctl --vacuum-size=500M

# Limit the number of log files
journalctl --vacuum-files=5

# Rotate journal files
journalctl --rotate

Last updated