Emit journal entries in JSON format.

Section: Output, Export, Maintenance

Output as JSON

bash
bash
journalctl -o json
Explanation

Great for scripts, jq, and structured analysis.

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
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
Vacuum journal to size
Delete archived journals until under size limit.
OpenIn sheetbashsame section
Vacuum journal by age
Delete archived logs older than a time window.
OpenIn sheetbashsame section
Verify journal files
Check journal file integrity.
OpenIn sheetbashsame section