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 -m merges the journals of all users and remote sources

Journalctl
~/tips/tip-journalctl-merge-all-journals

journalctl -m -b

Shows entries from all available journals, local and remote, in one time-ordered stream.

Besides the system journal there can be per-user files and journals from other machines.

-m or --merge shows entries interleaved from all available journals, including remote ones. Use it when you collect logs with systemd-journal-remote and want to see them next to your own.

journalctl -m -b

On a single machine the output often looks the same, so you will notice a difference only when extra journals are there. Use --header to see which files are included.

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