I am using logrotate to rotate apache logs. Problems is that I am using the dateext option in logrotate.conf which adds the date after the log file.
I am also using a custom name for the logfiles for example, access logs I am using:new.client.com_access.log
Once the logs are rotated, the file get renamed to: new.client.com-20120826 which is fine.
Now the problem I am facing is that my logrotate configuration file in logrotate.d does not sees the timestamps. it looks for .log only:
Is there a way to tell logrotate to compress the logs that ends with a date?
EX: Before logrotate: