Skip to content

Instantly share code, notes, and snippets.

@jdeathe
Last active March 23, 2021 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdeathe/b5948bea07dde1100cf05bbe6e8a3105 to your computer and use it in GitHub Desktop.
Save jdeathe/b5948bea07dde1100cf05bbe6e8a3105 to your computer and use it in GitHub Desktop.
Debug RSyslog on RHEL, CentOS, Oracle Linux (el7/el8 platform)

How to Enable RSyslog Debugging for Systemd Service Manager

Ref:

Create a drop-in configuration for the service

  1. As root level user, use systemctl edit to create a configuration override.
# systemctl edit rsyslog.service
  1. Add the following Service configuration
[Service]

Environment="RSYSLOG_DEBUG=DebugOnDemand NoStdOut"
Environment="RSYSLOG_DEBUGLOG=/var/log/rsyslog-debug.log"
  1. Restart the service
# systemctl restart rsyslog.service
  1. Switch debugging on
# kill -USR1 "$(</var/run/rsyslogd.pid)"
  1. Review the debugging log
# less /var/log/rsyslog-debug.log
  1. Switch debugging off
# kill -USR1 "$(</var/run/rsyslogd.pid)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment