[squid-users] Logrotate question

robert k Wild robertkwild at gmail.com
Thu Jun 16 08:53:02 UTC 2022


Hi Antony,

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

Thanks,
Rob

On Thu, 16 Jun 2022, 09:49 Antony Stone, <Antony.Stone at squid.open.source.it>
wrote:

> On Thursday 16 June 2022 at 09:27:32, robert k Wild wrote:
>
> > Thanks Eliezer
> >
> > I have centos 7 and I want it to rotate every 3 months as we need to keep
> > logs for every 3 months.
>
> Do you really mean you "need to keep logs for every 3 months"?
>
> Or do you mean that you need to keep "the most recent 3 months' logs"?
>
> I would recommend that you rotate every month, and keep 4 months' logs.
>
> Firstly, there's no point in letting indivdual log files grow too large,
> and
> secondly, you then know that at all times you have the current month's
> logs,
> plus the previous 3 months, until the fourth one gets deleted by logrotate.
>
>
> Antony.
>
> > On Thu, 16 Jun 2022, 08:11 , <ngtech1ltd at gmail.com> wrote:
> > > Rob,
> > >
> > > It will be different how you implement and use logrotate manually or
> with
> > > the logrotate tools.
> > >
> > > What OS are you using?
> > >
> > > Eliezer
> > >
> > > *From:* squid-users <squid-users-bounces at lists.squid-cache.org> *On
> > > Behalf Of *robert k Wild
> > > *Sent:* Wednesday, 15 June 2022 20:19
> > > *To:* Squid Users <squid-users at lists.squid-cache.org>
> > > *Subject:* [squid-users] Logrotate question
> > >
> > > Hi all,
> > >
> > > ATM to clear the logs, I do this in crontab, every 3 months
> > >
> > > 0 0 1 */3 * echo "" > /usr/local/squid/var/logs/access.log and do the
> > > same for cache log
> > >
> > > It works but I want to really use log rotate ie
> > >
> > > 0 0 1 */3 * /usr/local/squid/sbin/squid -k rotate
> > >
> > > I hear log rotate keeps 10 files by default so does that mean I will
> have
> > > 10 access logs etc and also will it keep the file the same ie won't
> > > change the size or compress it to save space
> > >
> > >
> > > Thanks,
> > >
> > > Rob
> > > _______________________________________________
> > > squid-users mailing list
> > > squid-users at lists.squid-cache.org
> > > http://lists.squid-cache.org/listinfo/squid-users
>
> --
> The next sentence is untrue.
> The previous sentence is also not true.
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220616/e0bec6a4/attachment.htm>


More information about the squid-users mailing list