Search code examples
systemd-journald

linux command to read/monitor events from systemd-journald


I want to monitor the events and logs of systemd-journal. Didn't find any commands i can use for the same. I am looking for something like 'tail -100f' which can show me the decoded events of systemd-journal


Solution

  • The journalctl utility displays logs from systemd units. systemd-journal is a system unit. Therefore, you can use the following:

    $ journalctl --unit systemd-journald --lines 100 --follow
    

    Tested on CentOS 7.5