Search squid archive

Re: Logrotate question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Rob,

 

First there is a difference between rotation and deletion.

If it’s not a loaded system then 3 month is ok but… in most use cases it’s better to rotate every day but to delete after 3 month.

You have the choice to compress the files or to leave them in plain text but it’s only a choice 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 <robertkwild@xxxxxxxxx>
Sent: Thursday, 16 June 2022 11:28
To: Eliezer Croitoru <ngtech1ltd@xxxxxxxxx>
Cc: Squid Users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Logrotate question

 

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.

 

Thanks,

Rob

 

On Thu, 16 Jun 2022, 08:11 , <ngtech1ltd@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of robert k Wild
Sent: Wednesday, 15 June 2022 20:19
To: Squid Users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: 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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux