[squid-users] How do I rotate access.log?

roee klinger roeeklinger60 at gmail.com
Tue Jan 12 13:09:47 UTC 2021


Thanks, everyone for making it clear, I will investigate how to do it using
logrotated.

Roee.

On Tue, Jan 12, 2021 at 3:26 AM Amos Jeffries <squid3 at treenet.co.nz> wrote:

> On 11/01/21 8:53 am, Matus UHLAR - fantomas wrote:
> > On 10.01.21 17:24, roee klinger wrote:
> >> I just wanted to give an update in case anyone is interested, I was not
> >> able to find a solution,
> >
> > it was posted here:
> >
> http://lists.squid-cache.org/pipermail/squid-users/2020-December/023074.html
> >
> >
> >>>     rotate=N        Specifies the number of log file rotations to
> >>>                 make when you run 'squid -k rotate'. [...]
> >>>                 Only supported by the stdio module
> >>
> >> You are not using an "stdio" module. You are using a "daemon" module.
> >
> > simply said, it could not work in your case,
> >> Instead, I set "logfile_rotate 0" and wrote my own custom script to
> >> rotate
> >> the logs and I am running it as a cron, works just fine.
> >
> > isn't this the default in raspbian? Afaik it comes from debian, where
> this
> > is the default.
> >
>
> Exactly so. The Debian default is to offload log handling to logrotated.
> Nothing needs to be done by the admin in squid.conf. Raspbian uses the
> Debian package, rebuilt to run on the Pi hardware.
>
> Amos
> _______________________________________________
> 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/20210112/13b10dc7/attachment.htm>


More information about the squid-users mailing list