I'm running Solr using Jetty and logging to /var/log/solr.log.
This log is growing so I added a logrotate entry at /etc/logrotate.d/solr as follows:
# Logrotate file for /var/log/solr.log
/var/log/solr.log {
rotate 5
compress
size 10M
weekly
postrotate
/sbin/service solr restart
endscript
}
Since this is a new file, the SELinux security context is off for /etc/logrotate.d/solr: