Below are the challenges. Requesting your help on this.
- Files are not removing
- .gz files are not generated as per the user and group details given in the script.
- When I execute every time date extension is keep on adding to the same .gz files.
/var/log/httpd/access_log*
/var/log/httpd/error_log*
{
copytruncate
daily
rotate 2
compress
missingok
dateext
maxage 5
create 0644 hhh hhh
}