> [email protected]
>
> I have an application (puppet) that generates report files every 15
> minutes in the format:
> /var/lib/puppet/reports/hostname.fqdn/report-201007221515.yaml
> /var/lib/puppet/reports/hostname.fqdn/report-201007221530.yaml
> ..
>
> I only really need to keep one days worth of these reports and am trying
> to use logrotate to keep it to that:
>
> /var/lib/puppet/reports/*/* {
>   missingok
>   maxage 2
>   rotate 0
>   daily
> }
>
> However on 22nd July when I ran logrotate I got messages like:
>
> considering log /var/lib/puppet/reports/virtase3.fqdn/201007201358.yaml
>   log does not need rotating
>
>
> Showing it's not seeing log files from 2 days before as needing removal.
>
> Any suggestions of what to add to my logrotate config?
>

shot in the dark here but... its not rotating the files because they have
different names and logrotate treats each filename as a different file to
monitor the rotation on?

i could be completely wrong, still trying to wake up.

-greg

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to