Quote:
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:
/var/log/httpd/access/,
/var/log/httpd/error/,
/var/log/httpd/required/
/var/log/htpd/debug/
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.