Originally Posted by acid_kewpie
why are you including the postrotate to delete the files??
do you not have an existing logrotate.d/httpd to handle these? Would you not just want to rotate everything in each directory?
Yes there is a /etc/logrotate.d/httpd file, but this file handles only *.log files and not directories, i need to logrotate or delete log files that are stored in /var/log/httpd/ ; there are 4 directories under /var/log/httpd/
they are as follows:
Each of the above 4 dirs hold around 20 files
*.access.log in /var/log/httpd/access/ dir
*.error.log in /var/log/httpd/error/ dir
*.debug.log in /var/log/httpd/error/ dir
*.required.log in /var/log/httpd/error/ dir
I need to logrotate or delete these files.