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 -a shows long or binary fields in full

Journalctl
~/tips/tip-journalctl-show-all-fields-blob

journalctl -a -u myservice

Shows complete log fields, including long ones and ones that normally appear as blob data.

Some messages are cut off or replaced by a note, and the note is not helpful.

By default a field with unprintable characters is abbreviated as blob data, and very long fields are not always shown in full. -a prints all fields completely, even when they contain unprintable characters or are very long.

journalctl -a -u myservice

The pager may escape unprintable characters again, so a terminal can still show odd symbols. Pipe to a file if you need the raw text.

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