brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: journalctl --verify checks the journal files for corruption

Journalctl
~/tips/tip-journalctl-verify-journal-integrity

journalctl --verify

Checks every journal file for corruption and reports PASS or FAIL for each file.

After a crash or a full disk I want to know if the journal itself is still sound.

--verify checks each journal file for internal consistency and prints PASS or FAIL per file. With a sealing key and --verify-key= it can also check that nobody changed the files. A clean PASS is one less thing to doubt.

journalctl --verify

The check does not repair a corrupted file. It tells you which one to distrust.

Further reading: journalctl(1) manual page

More Journalctl tips journalctl -k -g 'killed process' --since "2 days ago" journalctl _PID=1 -b ls -lh /var/log/journal/*/*.journal~ Storage=volatile sudo journalctl --setup-keys All Journalctl tips (81) All topics

Link