The systemd journal doesn't show messages from logger or any other program that uses syslog() to generate logs
Issue
-
I notice that the
logger
command in RHEL7 does nothing. No message shows up in /var/log/messages or in the systemd journal.~]# tail -fn0 /var/log/messages & journalctl -fn0 & [1] 1513 [2] 1514 -- Logs begin at Thu 2016-01-14 13:49:43 EST. -- ~]# logger testing testing ~]#
Logs from systemd itself (e.g., unit starting and stopping) are present in the journal:
~]# journalctl -fn0& [1] 1559 -- Logs begin at Thu 2016-01-14 13:49:43 EST. -- ~]# systemctl restart chronyd Jan 14 14:05:17 r72.example.com systemd[1]: Starting NTP client/server... Jan 14 14:05:17 r72.example.com systemd[1]: Started NTP client/server.
However, log messages from daemons don't appear, e.g., normally when starting chronyd.service above there should be messages from
chronyd
itself about version, driftfile and source-selection
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.