Clear systemd journal

If the journal is configured to archive entires these can take up unnecessary disk space when not properly maintained.

The current disk usage can be seen with journal --disk-usage. This includes both active and archived journal files.

Clear journal entries older then X number of days

$ journalctl --vacuum-time=5d

Clear journals exceeding X storage

$ journalctl --vacuum-size=2G

links

social