Ref:
- man rsyslogd
- https://www.rsyslog.com/how-to-use-debug-on-demand/
- As root level user, use
systemctl edit
to create a configuration override.
# systemctl edit rsyslog.service
- Add the following Service configuration
[Service]
Environment="RSYSLOG_DEBUG=DebugOnDemand NoStdOut"
Environment="RSYSLOG_DEBUGLOG=/var/log/rsyslog-debug.log"
- Restart the service
# systemctl restart rsyslog.service
- Switch debugging on
# kill -USR1 "$(</var/run/rsyslogd.pid)"
- Review the debugging log
# less /var/log/rsyslog-debug.log
- Switch debugging off
# kill -USR1 "$(</var/run/rsyslogd.pid)"