Re: Logs file question ?

From: Mark Visser <mark@dont-contact.us>
Date: Sat, 7 Jun 1997 13:45:51 +0200 (MET DST)

On Sat, 7 Jun 1997, Malcolm B.J. Garbutt wrote:

> is it necessary to keep
> cache.log, access.log and store.log
>
> or are these an option not to have
> I Know you can say none to store.log
>
> but my access.log and cache.log are 600MB and 240MB respectively and
> would like some of the hard disk back
>
> I have just deleted store.log which was 600MB

You don't need to keep this files if you don't want to.
From access.log you can pull nice statistics, but that's after that the
files has no need anymore.

I run this script every sundaynight:

--
#!/bin/sh
#
# Cycle logs WWW proxy server Squid
#       proxy control
pid=`/usr/bin/ps -e | /usr/bin/grep squid | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
/usr/bin/kill -16 ${pid}
--
(Solaris 2.4/Squid 1.NOVM.10)
This cycles the renames the logs to logs.0 (or logs.1 etc..) and restarts
squid so that it logs again.
I then pull stats out of access.log.0 after which *.0 is deleted to save
diskspace.
Fully automated...so no filling up of the partition (unless the proxy is
overused by many many people...and the partition which holds the logfiles
becomes full ;-)).
Mark
-------------------------------------------------------------------------
Mark Visser                |   Student Civiele Technologie & Management
Calslaan 26 - 31           |   E-mail: mark@cal026031.student.utwente.nl
7522 MC Enschede           |   SNT-mail: mark@snt.student.utwente.nl
Telephone: 053-4895038     |
-------------------------------------------------------------------------
Warning: You can get rid of all the bugs by disabling them from the main menu.
Received on Sat Jun 07 1997 - 04:48:10 MDT

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