Search squid archive

RE: How to rotate logs in Squid

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

 



Merhaba Mehmet,

Have you ever tried to run Crontab with squid "-k rotate" option?

Best regards,
Ilker G.
 

-----Original Message-----
From: Mehmet, Levent (Accenture) [mailto:Levent.Mehmet@xxxxxxxxxxxxxxx] 
Sent: Thursday, July 20, 2006 11:01 AM
To: Peter Albrecht; squid-users@xxxxxxxxxxxxxxx
Subject: RE:  How to rotate logs in Squid

Thanks Peter

I have looked in the etc/logrotate.d/ but I have no squid any ideas ? 

-----Original Message-----
From: Peter Albrecht [mailto:peter.albrecht@xxxxxxxxxx] 
Sent: 20 July 2006 07:41
To: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  How to rotate logs in Squid

Hi,

On Wednesday 19 July 2006 17:46, Mehmet, Levent (Accenture) wrote:
>  Hi
> 
> We have just installed Squid and I would like to know how rotate the 
> logs files.
> 
> Please can some explain on how this can be done automatically without 
> admin interference.
> 
> We are running Squid Suse 10.1

On SUSE Linux, you do not need to configure a cron job executing "squid
-k". 
Log file rotation is done automatically using logrotate. The
configuration file for the Squid logfiles is /etc/logrotate.d/squid. It
contains information when and how to rotate the following files:

* /var/log/squid/cache.log
* /var/log/squid/access.log
* /var/log/squid/store.log

By default, they are rotated depending on their size. If you have
configured any other log files (or modified the names), just include
them here. A description of the syntax is available in the man page of
logrotate. 
logrotate is run via a cron job daily (have a look at
/etc/cron.daily/logrotate)

Regards,

Peter

--
Peter Albrecht, Novell Training Services, peter.albrecht@xxxxxxxxxx

PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.
On entering the GSI, this email was scanned for viruses by the
Government Secure Intranet (GSi) virus scanning service supplied
exclusively by Cable & Wireless in partnership with MessageLabs.
In case of problems, please call your organisational IT Helpdesk.
The MessageLabs Anti Virus Service is the first managed service to
achieve the CSIA Claims Tested Mark (CCTM Certificate Number
2006/04/0007), the UK Government quality mark initiative for information
security products and services.  For more information about this please
visit www.cctmark.gov.uk



This email and any files transmitted with it are confidential. If you
are not the intended recipient, any reading, printing, storage,
disclosure, copying or any other action taken in respect of this email
is prohibited and may be unlawful. 

If you are not the intended recipient, please notify the sender
immediately by using the reply function and then permanently delete what
you have received.Incoming and outgoing email messages are routinely
monitored for compliance with the Department of Healths policy on the
use of electronic communications. 

For more information on the Department of Healths email policy, click
http;//www.doh.gov.uk/emaildisclaimer.htm

The original of this email was scanned for viruses by Government Secure
Intranet (GSi)  virus scanning service supplied exclusively by Cable &
Wireless in partnership with MessageLabs.
On leaving the GSI this email was certified virus free.
The MessageLabs Anti Virus Service is the first managed service to
achieve the CSIA Claims Tested Mark (CCTM Certificate Number
2006/04/0007), the UK Government quality mark initiative for information
security products and services.  For more information about this please
visit www.cctmark.gov.uk


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

  Powered by Linux