Linux journalctl Cheat Sheet/Vacuum journal by age

Delete archived logs older than a time window.

Section: Output, Export, Maintenance

Vacuum journal by age

bash
bash
sudo journalctl --vacuum-time=14d
Explanation

Retention control by age.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Output, Export, Maintenance
Vacuum journal to size
Delete archived journals until under size limit.
OpenIn sheetbashsame section
Output as JSON
Emit journal entries in JSON format.
OpenIn sheetbashsame section
Pretty JSON output
Human-readable JSON output.
OpenIn sheetbashsame section
Use ISO timestamps
Display logs in short ISO format.
OpenIn sheetbashsame section
Show journal disk usage
Inspect space used by journal files.
OpenIn sheetbashsame section
Verify journal files
Check journal file integrity.
OpenIn sheetbashsame section