Re: FW: [squid-users] Squid logs

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 22 Apr 2003 13:57:21 +0200

You ARE using an external log rotation program. Squid CANNOT gzip the
rotated logs.

Most likely you are using the logrotate program for rotating the logs.

What I think have happened here is either

a) Squid is no longer running on your server.

b) The pid file have been lost, preventing logrotate from telling Squid
that the logfiles have been rotated.

c) The logrotate configuration have been messed up, no longer attempting
to tell Squid that the logs have been rotated.

For a-b a restart of Squid should clear up the situation.

Regards
Henrik

tis 2003-04-22 klockan 13.21 skrev Galea Gilbert:
> Henrik is there nothing I can do regarding this problem? Sorry to disturb
> you again.
>
> Many thanks for your patience,
> Gilbert
>
>
> -----Original Message-----
> From: Galea Gilbert
> Sent: Tuesday, April 22, 2003 9:12 AM
> To: squid-users@squid-cache.org
> Subject: RE: [squid-users] Squid logs
>
>
> Henrik, I don't use an external log rotation program. What's that and what
> program should I use? Sorry I just installed squid, saw that it worked and
> continued on my work on other software that needed squid to operate. I took
> a look at /var/log/squid again this morning and it was as follows:
>
> total 132
> drwxr-x--x 2 squid squid 4096 Apr 22 04:02 .
> drwxr-xr-x 7 root root 4096 Apr 20 04:02 ..
> -rw-r--r-- 1 squid squid 0 Apr 13 04:02 access.log
> -rw-r--r-- 1 squid squid 6478 Apr 13 04:02 access.log.1.gz
> -rw-r--r-- 1 squid squid 24391 Apr 6 04:02 access.log.2.gz
> -rw-r--r-- 1 squid squid 0 Apr 22 04:02 cache.log
> -rw-r--r-- 1 squid squid 291 Apr 22 04:02 cache.log.1.gz
> -rw-r--r-- 1 squid squid 2618 Apr 13 04:02 cache.log.2.gz
> -rw-r--r-- 1 squid squid 2648 Apr 6 04:02 cache.log.3.gz
> -rw-r--r-- 1 squid squid 0 Apr 13 04:02 store.log
> -rw-r--r-- 1 squid squid 16661 Apr 13 04:02 store.log.1.gz
> -rw-r--r-- 1 squid squid 56076 Apr 6 04:02 store.log.2.gz
>
> cache.log was gzipped and today it had a size of 0 too!
>
> So I gunzipped cache.log.1.gz and it contained the following:
>
> CPU Usage: 1.350 seconds = 0.930 user + 0.420 sys
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 369
> Memory usage for squid via mallinfo():
> total space in arena: 3374 KB
> Ordinary blocks: 3308 KB 81 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 176 KB 1 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 65 KB
> Total in use: 3484 KB 103%
> Total free: 65 KB 2%
>
> Many thanks for your help,
> Gilbert
>
>
> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Sent: Monday, April 21, 2003 3:29 PM
> To: Galea Gilbert; squid-users@squid-cache.org
> Subject: Re: [squid-users] Squid logs
>
>
> It looks like something went wrong when your external log rotation
> program last rotated the log files, or your Squid is not used.
>
> What does your cache.log say?
>
> Regards
> Henrik
>
> On Monday 21 April 2003 14.34, Galea Gilbert wrote:
> > Hi Squid gurus,
> >
> > Does anybody know why an ls -la in /var/log/squid on my RH7.2 gives
> > the following?
> >
> > total 132
> > drwxr-x--x 2 squid squid 4096 Apr 13 04:02 .
> > drwxr-xr-x 7 root root 4096 Apr 20 04:02 ..
> > -rw-r--r-- 1 squid squid 0 Apr 13 04:02 access.log
> > -rw-r--r-- 1 squid squid 6478 Apr 13 04:02 access.log.1.gz
> -rw-r--r-- 1 squid squid 24391 Apr 6
> > 04:02 access.log.2.gz -rw-r--r-- 1 squid squid 468
> > Apr 21 14:12 cache.log -rw-r--r-- 1 squid squid 2618
> > Apr 13 04:02 cache.log.1.gz -rw-r--r-- 1 squid squid
> > 2648 Apr 6 04:02 cache.log.2.gz -rw-r--r-- 1 squid squid
> > 0 Apr 13 04:02 store.log -rw-r--r-- 1 squid squid
> > 16661 Apr 13 04:02 store.log.1.gz -rw-r--r-- 1 squid squid
> > 56076 Apr 6 04:02 store.log.2.gz
> >
> > Why does access.log and store.log have a size of 0? I have tried to
> > access other pages to generate new entries in the log files however
> > these two files remain 0 bytes. However squid is working perfectly.
> >
> > Many thanks,
> > Gilbert
> > *******************************************************************
> >*********
> > *******************************************************************
> >********* **************
> >
> > FREE Internet connection anytime, anywhere.
> >
> > Surf the Web and send/receive email when you're out and about. All
> > you need is your GPRS-enabled phone and laptop or PDA.
> >
> > Visit www.vodafone.com.mt for more info.
> >
> > *******************************************************************
> >*********
> > *******************************************************************
> >********* **************

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Tue Apr 22 2003 - 05:57:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:10 MST