On 23/07/10 11:43, nodata wrote:
> On 23/07/10 09:50, Tim Edwards wrote:
>> 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?
>>
>> Thanks
>>
>> Tim Edwards
>>
>> _______________________________________________
>> rhelv5-list mailing list
>> [email protected]
>> https://www.redhat.com/mailman/listinfo/rhelv5-list
>>
>
> Your clue should be in what it removes the next day...
I'm not sure what you mean, it's still keeping files from 3 days ago:
considering log /var/lib/puppet/reports/xen07.eso.org/201007201326.yaml
log does not need rotating
That's from a run on 2010-07-23 at 14:48
Tim Edwards
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list