I was seeing this issue when the logfile was truncated from logrotate per https://github.com/rsyslog/rsyslog/issues/721 .
Turns out there is an option to imfile for handling truncation -- reopenOnTruncate -- otherwise logging will not continue until the truncated file reaches its original size
e.g.
input(type="imfile"
File="/var/log/secure"
Tag="secure-testing"
Ruleset="secure_ruleset_testing"
reopenOnTruncate="on")
You can also enable the rsyslog debug output per https://www.rsyslog.com/how-to-use-debug-on-demand/ --
export RSYSLOG_DEBUG="DebugOnDemand NoStdOut"
export RSYSLOG_DEBUGLOG=/somepath/example.log
/etc/rc.d/init.d/rsyslog stop
rsyslogd -n
In a separate session window run:
kill -USR1 `cat /var/run/rsyslogd.pid`
(ensure the pid file exists or just get it using the process list). Debug logging will show up in the specified file.