<div dir="auto">Hi Antony,<div dir="auto"><br></div><div dir="auto">All I know is I need to keep a record of up to 3 months, worth of logs, due to gdpr, how would you say I go about this</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Rob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jun 2022, 09:49 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 09:27:32, robert k Wild wrote:<br>
<br>
> Thanks Eliezer<br>
> <br>
> I have centos 7 and I want it to rotate every 3 months as we need to keep<br>
> logs for every 3 months.<br>
<br>
Do you really mean you "need to keep logs for every 3 months"?<br>
<br>
Or do you mean that you need to keep "the most recent 3 months' logs"?<br>
<br>
I would recommend that you rotate every month, and keep 4 months' logs.<br>
<br>
Firstly, there's no point in letting indivdual log files grow too large, and <br>
secondly, you then know that at all times you have the current month's logs, <br>
plus the previous 3 months, until the fourth one gets deleted by logrotate.<br>
<br>
<br>
Antony.<br>
<br>
> On Thu, 16 Jun 2022, 08:11 , <<a href="mailto:ngtech1ltd@gmail.com" target="_blank" rel="noreferrer">ngtech1ltd@gmail.com</a>> wrote:<br>
> > Rob,<br>
> > <br>
> > It will be different how you implement and use logrotate manually or with<br>
> > the logrotate tools.<br>
> > <br>
> > What OS are you using?<br>
> > <br>
> > Eliezer<br>
> > <br>
> > *From:* squid-users <<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users-bounces@lists.squid-cache.org</a>> *On<br>
> > Behalf Of *robert k Wild<br>
> > *Sent:* Wednesday, 15 June 2022 20:19<br>
> > *To:* Squid Users <<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a>><br>
> > *Subject:* [squid-users] Logrotate question<br>
> > <br>
> > Hi all,<br>
> > <br>
> > ATM to clear the logs, I do this in crontab, every 3 months<br>
> > <br>
> > 0 0 1 */3 * echo "" > /usr/local/squid/var/logs/access.log and do the<br>
> > same for cache log<br>
> > <br>
> > It works but I want to really use log rotate ie<br>
> > <br>
> > 0 0 1 */3 * /usr/local/squid/sbin/squid -k rotate<br>
> > <br>
> > I hear log rotate keeps 10 files by default so does that mean I will have<br>
> > 10 access logs etc and also will it keep the file the same ie won't<br>
> > change the size or compress it to save space<br>
> > <br>
> > <br>
> > Thanks,<br>
> > <br>
> > Rob<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>
<br>
-- <br>
The next sentence is untrue.<br>
The previous sentence is also not true.<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>