rsyslog stop logging without any error

Solution Verified - Updated -

Issue

  • The rsyslog is running but stops logging to log files under /var/log.
  • logger command exit code is 0 but no log output.
  • There is nothing wrong found in strace.
# systemctl status rsyslog
● rsyslog.service - System Logging Service
   Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-20 03:14:39 EDT; 3min 59s ago
     Docs: man:rsyslogd(8)
           http://www.rsyslog.com/doc/
 Main PID: 8479 (rsyslogd)
   CGroup: /system.slice/rsyslog.service
           └─8479 /usr/sbin/rsyslogd -n

Mar 20 03:14:39 vm76 systemd[1]: Stopped System Logging Service.
Mar 20 03:14:39 vm76 systemd[1]: Starting System Logging Service...
Mar 20 03:14:39 vm76 systemd[1]: Started System Logging Service.
# logger test ; tail -1 /var/log/messages
Mar 20 03:07:46 vm76 systemd-logind: New session 100 of user root.
[root@vm76 backup]# logger test1
[root@vm76 backup]# echo $?
0
[root@vm76 backup]# tail -1 /var/log/messages
Mar 20 03:07:46 vm76 systemd-logind: New session 100 of user root.
  • The systemd journal doesn't stop logging.

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content