File: //etc/logrotate.d/httpd
/var/log/httpd/*log
/var/log/httpd/*/*log[0-9]*
/var/log/httpd/*/*log-[0-9]* {
su root root
prerotate
/usr/bin/find /var/log/httpd/ -type d -exec chmod 750 {} \;
endscript
missingok
notifempty
sharedscripts
rotate 6
compress
postrotate
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
/usr/bin/find /var/log/httpd/ -type f -name "*.gz" -mtime +15 -exec rm -f {} \; > /dev/null
/usr/bin/find /var/log/httpd/*/ -type f -name "*log[0-9]*" -mtime +15 -exec rm -f {} \; > /dev/null
/usr/bin/find /var/log/httpd/*/ -type f -name "*log-[0-9]*" -mtime +15 -exec rm -f {} \; > /dev/null
endscript
}