On 18/06/22 11:25, robert k Wild wrote:
So what your saying is change the
-k reconfigure to
-k rotate
Even tho I've configured squid from source
Yes.
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/l
So what your saying is change the
-k reconfigure to
-k rotate
Even tho I've configured squid from source
On Sat, 18 Jun 2022, 00:17 Amos Jeffries, wrote:
> On 18/06/22 07:06, robert k Wild wrote:
> > i understand it now
> >
>
> Er, no.
>
> > cat /etc/logrotate.d/squid
> > /usr/local/squid/var
On 18/06/22 07:06, robert k Wild wrote:
i understand it now
Er, no.
cat /etc/logrotate.d/squid
/usr/local/squid/var/logs/*.log {
...
postrotate
/usr/local/squid/sbin/squid -k reconfigure
endscript
}
needed the sharedscripts to run the postrotate just once for all logs
didnt need the sq
ile accordingly.
>>>
>>>
>>>
>>> All The Bests,
>>>
>>> Eliezer
>>>
>>>
>>>
>>> *From:* robert k Wild
>>> *Sent:* Thursday, 16 June 2022 15:24
>>> *To:* Eliezer Croitoru
>>> *Cc:* Squ
rotate file
>> accordingly.
>>
>>
>>
>> All The Bests,
>>
>> Eliezer
>>
>>
>>
>> *From:* robert k Wild
>> *Sent:* Thursday, 16 June 2022 15:24
>> *To:* Eliezer Croitoru
>> *Cc:* Squid Users
>> *Subject:* Re: [squid
ay, 16 June 2022 15:24
> *To:* Eliezer Croitoru
> *Cc:* Squid Users
> *Subject:* Re: [squid-users] Logrotate question
>
>
>
> No squid isn't sorry it is compiled from source, I forgot to add it sorry
> about that
>
>
>
> On Thu, 16 Jun 2022, 13:19 , wrot
change the path of the squid binary in the squid logrotate file accordingly.
All The Bests,
Eliezer
From: robert k Wild
Sent: Thursday, 16 June 2022 15:24
To: Eliezer Croitoru
Cc: Squid Users
Subject: Re: [squid-users] Logrotate question
No squid isn't sorry it is compiled from sour
assistance let me know.
>
>
>
> Eliezer
>
>
>
> *From:* robert k Wild
> *Sent:* Thursday, 16 June 2022 14:52
> *To:* Eliezer Croitoru
> *Cc:* Squid Users
> *Subject:* Re: [squid-users] Logrotate question
>
>
>
> Self compiled from source with others ie
>
>
mpiled or another source?
Eliezer
From: robert k Wild mailto:robertkw...@gmail.com> >
Sent: Thursday, 16 June 2022 14:05
To: Eliezer Croitoru mailto:ngtech1...@gmail.com> >
Cc: Squid Users mailto:squid-users@lists.squid-cache.org> >
Subject: Re: [squid-users] Logrotate questi
gt;
>
> Eliezer
>
>
>
> *From:* robert k Wild
> *Sent:* Thursday, 16 June 2022 14:05
> *To:* Eliezer Croitoru
> *Cc:* Squid Users
> *Subject:* Re: [squid-users] Logrotate question
>
>
>
> Oops sorry you did say that, sorry I didn't see that at first
&
How did you installed squid on CentOS 7?
>From my packages or the OS default or self compiled or another source?
Eliezer
From: robert k Wild
Sent: Thursday, 16 June 2022 14:05
To: Eliezer Croitoru
Cc: Squid Users
Subject: Re: [squid-users] Logrotate question
Oops sorry you did say t
he rotate to 92+ and also change the squid number
>> of logs to the same number.
>>
>>
>>
>> Let me know if you it’s helpful.
>>
>>
>>
>> Eliezer
>>
>>
>>
>> *From:* ngtech1...@gmail.com
>> *Sent:* Thursday
o change the squid number
> of logs to the same number.
>
>
>
> Let me know if you it’s helpful.
>
>
>
> Eliezer
>
>
>
> *From:* ngtech1...@gmail.com
> *Sent:* Thursday, 16 June 2022 14:00
> *To:* 'robert k Wild' ; 'Squid Users' <
ame number.
Let me know if you it’s helpful.
Eliezer
From: ngtech1...@gmail.com
Sent: Thursday, 16 June 2022 14:00
To: 'robert k Wild' ; 'Squid Users'
Subject: RE: [squid-users] Logrotate question
Hey Rob,
The next is the file:
From: squid-users mailto:squid-us
Hey Rob,
The next is the file:
From: squid-users On Behalf Of
robert k Wild
Sent: Thursday, 16 June 2022 13:27
To: Squid Users
Subject: Re: [squid-users] Logrotate question
Cool, so I will rotate daily and delete after 91 days, thanks guys
On Thu, 16 Jun 2022, 11:14 Matus UHLAR
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
On Thu, 16 Jun 2022, 11:41 Antony Stone,
wrote:
> On Thursday 16 June 2022 at 11:26:37, robert k Wild wrote:
>
> > Cool, so
On Thursday 16 June 2022 at 11:26:37, robert k Wild wrote:
> Cool, so I will rotate daily and delete after 91 days, thanks guys
Why did you change the recommended 92 days into 91?
Consider June, July and August:
June has 30 days
July has 31 days
August has 31 days
So, o
Cool, so I will rotate daily and delete after 91 days, thanks guys
On Thu, 16 Jun 2022, 11:14 Matus UHLAR - fantomas,
wrote:
> On 16.06.22 10:54, robert k Wild wrote:
> >Basically I want to keep logs for 3 months then rotate so it overwrites
> >them with another 3 months, if that makes sense
>
>
On 16.06.22 10:54, robert k Wild wrote:
Basically I want to keep logs for 3 months then rotate so it overwrites
them with another 3 months, if that makes sense
in fact, it does not.
I guess you are supposed to keep 3 months of logs, which mean, you always
need to have 3 months of logs availab
t my CentOS 7 system and will try to find the
> right way to do it.
>
>
>
> Eliezer
>
>
>
> *From:* robert k Wild
> *Sent:* Thursday, 16 June 2022 11:28
> *To:* Eliezer Croitoru
> *Cc:* Squid Users
> *Subject:* Re: [squid-users] Logrotate question
>
>
&g
You should combine them both.
I am checking this for you right now…
Eliezer
From: squid-users On Behalf Of
robert k Wild
Sent: Thursday, 16 June 2022 12:32
To: Squid Users
Subject: Re: [squid-users] Logrotate question
Cool, Thanks all, il try the logrotate program instead of using squids
of resources preservation.
Let me see, I will look at my CentOS 7 system and will try to find the right
way to do it.
Eliezer
From: robert k Wild
Sent: Thursday, 16 June 2022 11:28
To: Eliezer Croitoru
Cc: Squid Users
Subject: Re: [squid-users] Logrotate question
Thanks Eliezer
I
Cool, Thanks all, il try the logrotate program instead of using squids one
Thanks guys :)
On Thu, 16 Jun 2022, 10:26 Matus UHLAR - fantomas,
wrote:
> On 16.06.22 10:23, robert k Wild wrote:
> >So I can use the package logrotate instead of the squid one
>
> squid packages in debian comes configu
On Thursday 16 June 2022 at 09:53:02, robert k Wild wrote:
> 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
Here's the standard logrotate file for Squid3 which is installed on Debian (I
doubt that CentOS sh
On 16.06.22 10:23, robert k Wild wrote:
So I can use the package logrotate instead of the squid one
squid packages in debian comes configured for rotating logs with logrotate.
- logfile_rotate is set to 0
- logrotate config file tells when/how to rotate
perhaps it's the same with centos.
On
So I can use the package logrotate instead of the squid one
On Thu, 16 Jun 2022, 10:22 Matus UHLAR - fantomas,
wrote:
> On 16.06.22 09:53, robert k Wild wrote:
> >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
>
> keepi
On 16.06.22 09:53, robert k Wild wrote:
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
keeping 3 months of log is very different from rotating each 3 months.
configure logrotate to rotate daily and keep 92 days worth of log
; > >
> > > What OS are you using?
> > >
> > > Eliezer
> > >
> > > *From:* squid-users *On
> > > Behalf Of *robert k Wild
> > > *Sent:* Wednesday, 15 June 2022 20:19
> > > *To:* Squid Users
> > > *Subject:* [squi
S are you using?
> >
> > Eliezer
> >
> > *From:* squid-users *On
> > Behalf Of *robert k Wild
> > *Sent:* Wednesday, 15 June 2022 20:19
> > *To:* Squid Users
> > *Subject:* [squid-users] Logrotate question
> >
> > Hi all,
> >
gt;
> What OS are you using?
>
>
>
> Eliezer
>
>
>
> *From:* squid-users *On
> Behalf Of *robert k Wild
> *Sent:* Wednesday, 15 June 2022 20:19
> *To:* Squid Users
> *Subject:* [squid-users] Logrotate question
>
>
>
> Hi all,
>
>
>
>
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 On Behalf Of
robert k Wild
Sent: Wednesday, 15 June 2022 20:19
To: Squid Users
Subject: [squid-users] Logrotate question
Hi all,
ATM to
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 def
32 matches
Mail list logo