<div dir="auto">Ok sorry as normally 3 months is 90 days and I just added a 1 to it, but I get what you mean if months have 31 I should really do 93 as I want to give it extra room incase</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jun 2022, 11:41 Antony Stone, <<a href="mailto:Antony.Stone@squid.open.source.it">Antony.Stone@squid.open.source.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thursday 16 June 2022 at 11:26:37, robert k Wild wrote:<br>
<br>
> Cool, so I will rotate daily and delete after 91 days, thanks guys<br>
<br>
Why did you change the recommended 92 days into 91?<br>
<br>
Consider June, July and August:<br>
<br>
        June has 30 days<br>
        July has 31 days<br>
        August has 31 days<br>
<br>
So, on September 1st, June 1st is 92 days ago, and you can delete the logs for <br>
May 31st, which are older than 92 days.<br>
<br>
If you deleted older than 91 days, you would be deleting June 1st on September <br>
1st, and one day this might be significant to someone.<br>
<br>
<br>
Antony.<br>
<br>
> On Thu, 16 Jun 2022, 11:14 Matus UHLAR - fantomas wrote:<br>
> > On 16.06.22 10:54, robert k Wild wrote:<br>
> > >Basically I want to keep logs for 3 months then rotate so it overwrites<br>
> > >them with another 3 months, if that makes sense<br>
> > <br>
> > in fact, it does not.<br>
> > <br>
> > I guess you are supposed to keep 3 months of logs, which mean, you always<br>
> > need to have 3 months of logs available.<br>
> > <br>
> > Each day, you can delete log files over 3 months old.<br>
> > <br>
> > If you rotated lof once in 3 months, you would have single file with 3<br>
> > months of logs in it, and could remove it 3 months after rotating, when<br>
> > first logs would be 6 months old.<br>
> > <br>
> > As we already told you, rotate daily and remove old logs after 92 days.<br>
> > and use logrotate config.<br>
<br>
-- <br>
I just got a new mobile phone, and I called it Titanic.  It's already syncing.<br>
<br>
                                                   Please reply to the list;<br>
                                                         please *don't* CC me.<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>