Sample Header Ad - 728x90

journalctl to Query Another Machine's Journal?

1 vote
0 answers
2279 views
Can one use journalctl to read or query another machine's journal? This would seem trivial and obvious on its face but evidently is not. The journalctl man pages and Google reveal nothing on the topic. I'm in a multiboot environment debugging some especially arcane and elusive boot hang issues. Obviously, one can't use journalctl on a machine that hangs during boot, so the question is whether I can use journalctl while booted to a functioning machine on one partition to read the systemd journals of a failed machine on another. syslog is of no assistance because the boot process doesn't proceed beyond tty1, *i.e.*, far enough for syslog / rsyslog to launch and read dmesg. There is some hope that boot messages make it into the systemd-journald log, howver. Any thoughts about whether this is possible, and how, would be most appreciated. EDIT: I evidently hadn't read man journalctl closely enough because the -D DIR option is exactly what I'm seeking. Credit to @muru, and thanks.
Asked by ebsf (399 rep)
Jun 8, 2022, 02:14 AM
Last activity: Jun 11, 2022, 05:16 PM