DockerNaughty
DockerNaughty

Reputation: 193

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

Upvotes: 4

Views: 3495

Answers (2)

javed
javed

Reputation: 1

journalctl -u gunicorn | tail -n 100

Upvotes: 0

Alex
Alex

Reputation: 1639

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

Upvotes: 4

Related Questions