[squid-users] How to rotate logs in Squid

2006-07-19 Thread Mehmet, Levent \(Accenture\)
 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

Thanks
 

Levent Mehmet 
Network Analyst 
Server and Network Team 
[EMAIL PROTECTED] Operate Unit 
Market Towers, 20th Floor 
1 Nine Elms Lane 
London 
SW8 5NQ 

E-mail: [EMAIL PROTECTED] 
Phone: +44 20 7084 3517 
Fax:   +44 20 7084 2536 



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


RE: [squid-users] How to rotate logs in Squid

2006-07-19 Thread Mehmet, Levent \(Accenture\)
Hi

Sorry to be a pain I don't understand not a strong user in squid 

-Original Message-
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2006 17:08
To: Mehmet, Levent (Accenture)
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] How to rotate logs in Squid

ons 2006-07-19 klockan 16:46 +0100 skrev Mehmet, Levent (Accenture):

> 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.

Add a cron job running "squid -k rotate" at selected interval.

Regards
Henrik


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


RE: [squid-users] How to rotate logs in Squid

2006-07-19 Thread Henrik Nordstrom
ons 2006-07-19 klockan 17:13 +0100 skrev Mehmet, Levent (Accenture):
> Hi
> 
> Sorry to be a pain I don't understand not a strong user in squid 

man crontab

has nothing to do with Squid really.. cron is the automatic job
scheduler in UNIX.

You tell Squid to rotate it's log files by running "squid -k rotate".

cron can be set up to call "squid -k rotate" at any interval you prefer.
A common choice is once per day.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] How to rotate logs in Squid

2006-07-19 Thread Odhiambo WASHINGTON
* On 19/07/06 17:13 +0100, Mehmet, Levent (Accenture) wrote:
| Hi
| 
| Sorry to be a pain I don't understand not a strong user in squid 
| 
| -Original Message-
| From: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
| Sent: 19 July 2006 17:08
| To: Mehmet, Levent (Accenture)
| Cc: squid-users@squid-cache.org
| Subject: Re: [squid-users] How to rotate logs in Squid
| 
| ons 2006-07-19 klockan 16:46 +0100 skrev Mehmet, Levent (Accenture):
| 
| > 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.
| 
| Add a cron job running "squid -k rotate" at selected interval.

Edit /etc/crontab and add one like like this;

59 23  *  *  6  root/usr/local/sbin/squid -k rotate

Use the correct path for squid binary.



-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+

Those who educate children well are more to be honored than parents,
for these only gave life, those the art of living well.
-- Aristotle


Re: [squid-users] How to rotate logs in Squid

2006-07-19 Thread Peter Albrecht
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, [EMAIL PROTECTED]


RE: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Mehmet, Levent \(Accenture\)
Thanks Peter

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

-Original Message-
From: Peter Albrecht [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2006 07:41
To: squid-users@squid-cache.org
Subject: Re: [squid-users] 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, [EMAIL PROTECTED]

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


Re: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Peter Albrecht
Hi Mehmet,

On Thursday 20 July 2006 10:01, Mehmet, Levent (Accenture) wrote:
> Thanks Peter
> 
> I have looked in the etc/logrotate.d/ but I have no squid any ideas ? 

The file will only be installed if you install the Squid package:

merkur2:~ # rpm -qf /etc/logrotate.d/squid
squid-2.5.STABLE12-18.2

Well, this is from SLES 10 which is based on SUSE Linux 10.1. I don't have a 
SUSE Linux 10.1 around but it should be the same package.

So please install this package from your installation media and even if you 
decide to use your own Squid (self-compiled), you can use the configuration 
file for logrotate. If I can be of any additional help, please let me know.

Regards,

Peter

-- 
Peter Albrecht, Novell Training Services, [EMAIL PROTECTED]


RE: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Mehmet, Levent \(Accenture\)
Hi Peter

Thanks

Yes you are correct we installed our own self - compiled squid which is
why I don't see the files.

I shall install this package. Do you think there would be any confiction
with the live squid running if I perform this task

Thanks once again 

-Original Message-
From: Peter Albrecht [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2006 09:11
To: squid-users@squid-cache.org
Subject: Re: [squid-users] How to rotate logs in Squid

Hi Mehmet,

On Thursday 20 July 2006 10:01, Mehmet, Levent (Accenture) wrote:
> Thanks Peter
> 
> I have looked in the etc/logrotate.d/ but I have no squid any ideas ? 

The file will only be installed if you install the Squid package:

merkur2:~ # rpm -qf /etc/logrotate.d/squid
squid-2.5.STABLE12-18.2

Well, this is from SLES 10 which is based on SUSE Linux 10.1. I don't
have a SUSE Linux 10.1 around but it should be the same package.

So please install this package from your installation media and even if
you decide to use your own Squid (self-compiled), you can use the
configuration file for logrotate. If I can be of any additional help,
please let me know.

Regards,

Peter

--
Peter Albrecht, Novell Training Services, [EMAIL PROTECTED]

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


Re: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Peter Albrecht
Hi Mehmet,

On Thursday 20 July 2006 10:25, Mehmet, Levent (Accenture) wrote:
> Hi Peter
> 
> Thanks
> 
> Yes you are correct we installed our own self - compiled squid which is
> why I don't see the files.
> 
> I shall install this package. Do you think there would be any confiction
> with the live squid running if I perform this task

It depends on where you installed your Squid files. 

There are two options to get /etc/logrotate.d/squid on your system:

1) You stay with your self-compiled Squid. Then I recommend installing the 
   Squid package on another machine and copying /etc/logrotate.d/squid to your
   "real" server. logrotate will detect the squid file and will rotate the log 
   files automatically, so no other action is required.

   If you want/need to install the package on your "real" server, please check
   first if it would overwrite some of your own files. To get the list of 
   files in the rpm package, do 

   rpm -qpl /path/to/the/squidpackage

   But there are more than 1000 files in the package ...

2) Save your squid.conf and install the package from the installation media. 
   (Maybe remove all your self-installed squid files first to get a clean 
   system.) Then copy your configuration to /etc/squid/squid.conf and start 
   your Squid. Using Squid from the installation media also has the advantage 
   that you can use the start script /etc/init.d/squid. So you don't need to 
   modify anthing besides the configuration. And using rpm packages allows 
   easily for removing/updating packages with all dependencies and all files.

   Do you have a special need why you can't use the Squid package provided on 
   the DVD/CD? Normally it should be fine using this package.

Regards,

Peter

-- 
Peter Albrecht, Novell Training Services, [EMAIL PROTECTED]


RE: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Ilker GOKHAN
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:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 11:01 AM
To: Peter Albrecht; squid-users@squid-cache.org
Subject: RE: [squid-users] 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:[EMAIL PROTECTED] 
Sent: 20 July 2006 07:41
To: squid-users@squid-cache.org
Subject: Re: [squid-users] 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, [EMAIL PROTECTED]

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


Re: [squid-users] How to rotate logs in Squid

2006-07-20 Thread Visolve Squid

Mehmet, Levent (Accenture) wrote:


Hi

We have just installed Squid and I would like to know how rotate the
logs files.


Hello Mehmet,

The command " squid -k rotate" will rotate the log files.

--
Thanks,
Visolve Squid Team,
http://squid.visolve.com