Logrotate not working on for logs created by rsyslog
I'm running a rhel7 server and I have a rsyslog logrotate config file that doesn't seem to run using cron job. It will only work if i run it manually
Troubleshooting steps i took:
1, logrotate -df /etc/logrotate.d/rsyslog
Result: Able to log rotate successfully
- run-parts /etc/cron.daily
Result: Able to log rotate successfully (Verify by looking at timestamp of cron log in /var/log/cron)
Jun 6 15:42:19 server run-parts(/etc/cron.daily)[144143]: starting logrotate
Jun 6 15:49:26 server run-parts(/etc/cron.daily)[146078]: finished logrotate
However, the problem is if i let it run normally by itself it does not seem to rotate. However, it does the rotation for other config file (e.g syslog)
Based on the behavior above, I came to a conclusion that
1. my config file is working
2. should be a SELINUX permissioning issue that is stopping my logrotate
However, i ran the command "ls -Zd" on the files to be rotated, as well as their parent folders but i do not see any issue with the permissioning. All of the logs are tagged with var_log_t.
Any idea how can i troubleshoot further?