Search code examples
systemd-journald

View systemd logs without journald


I have a rootfs of broken container with ubuntu-xenial. How to view logs of specific service without running journald?


Solution

  • You can read any journald directory or file using journalctl.

    From https://unix.stackexchange.com/questions/199988/howto-inspect-systemd-system-journal-from-another-system

    journalctl --file /var/log/journal/system.journal