I added two scripts in \"logrotate.d\" directory for my application logs to be rotated. This is the config for one of them:
{
compress
I've recently encountered a similar SELinux-related issue with logrotate
not operating on files as expected, which occurred when the logs to be rotated were on an NFS share.
In this case setting the logrotate_use_nfs
seboolean seemed to fix the problem, e.g.
$ setsebool logrotate_use_nfs 1
$ getsebool logrotate_use_nfs
logrotate_use_nfs --> on