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 -x adds an explanation under the log lines that have one

Journalctl
~/tips/tip-journalctl-catalog-explanations

journalctl -xb -p err

Adds a short explanation beneath journal entries that have one in the message catalog.

Some log lines are cryptic, and a few of them come with a built-in explanation.

-x adds help text from the message catalog to entries that have one. The text explains the event, sometimes names a solution and points to documentation. Combined with -b -p err it works as a short troubleshooting hint for the failures of this boot.

journalctl -xb -p err

Not every entry has catalog text. The man page also asks you not to use -x when you attach output to a bug report, because the extra text makes the log harder to read for others.

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