RE: LOG Files

From: David Richards <[email protected]>
Date: Tue, 4 Nov 1997 09:28:10 +1000 (EST)

Yes you could do that. But first you need to set the number of logs you
wish squid to rotate through.

You may also wish to find the pid in a different way. How about something
like:

        kill -USR1 `cat /usr/local/squid/logs/squid.pid`

Bye,

Dave.

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
David Richards Ph: +61 7 3864 4347
Network Programmer Fax: +61 7 3864 5272
Computing Services E-mail: dj.richards@qut.edu.au
Queensland University of Technology
Brisbane, Australia
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

On Mon, 3 Nov 1997, Armistead, Jason wrote:

> Sanjay
>
> Read the FAQ - there is a section which says that sending a SIGUSR1 to
> the squid process, as in "kill -USR1 squid-pid", will do this.Of course
> you have to use something to get squids PID, like the following
>
> pid=`ps -e | grep -w squid | sed -e 's/^ *//' -e 's/ .*//'`
>
> You can put this in a suitable CRON job to get it to work every day,
> week, month, etc.
>
> The config parameter logfile_rotate sets the number of logs to rotate
> through for access.log, store.log, cache.log. After that number, old
> logs are deleted, so at most you'll have logfile_rotate logs.
>
> access.log -> access.log.0 -> access.log.1 .......access.log.n
>
> Regards
>
> Jason Armistead
> armistej@oeca.otis.com
>
> >----------
> >From: sanjayk@ssdi.sony.com.sg[SMTP:sanjayk@ssdi.sony.com.sg]
> >Sent: Monday, 3 November 1997 13:35
> >To: squid-users@nlanr.net
> >Subject: LOG Files
> >
> >
> >Hi,
> >
> >How do I recycle the LOG Files (access.log and store.log) generated by
> >Squid. Is there any parameter or
> >option to specify that squid to initialise the log files after X many days
> >as the size of the Log files is
> >increasing enormously? Or is there any option to move the log files to some
> >other directories
> >automatically after the certain specified days?
> >
> >Regards,
> >Sanjay
> >
> >
> >
>
Received on Mon Nov 03 1997 - 15:31:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:26 MST