linux command to read/monitor events from systemd-journald

Viewed 334

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

2 Answers

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

journalctl -u gunicorn | tail -n 100
Related