Re: Some basic questions

From: Adrian Bassett <A.J.Bassett@dont-contact.us>
Date: Wed, 12 Jun 1996 14:01:24 +0100 (BST)

On Wed, 12 Jun 1996, F. Jacot Guillarmod wrote:

> - is there a source for the accounting scripts other than via
> the WWW? Something is broken in the versions I've pulled
> across.

I found that (using perl 5.002) I needed the following changes to
squid-logs.pl:

diff squid-logs.pl squid-logs.pl.dist
18,19c18,19
< #unless (/^([\d\.]+) \S+ \S+ \[([^\]]+)\] "(\w+) ([^"]+)" (\w+)
(\d+)$/)
< #print STDERR "parse_common_log: Bad input, line $.\n";

---
>       unless (/^([\d\.]+) \S+ \S+ \[([^\]]+)\] "(\w+) ([^"]+)" (\w+)
(\d+)$/)
>               print STDERR "parse_common_log: Bad input, line $.\n";
21c21
<       #}
---
>       }
Why this should be I don't know - I am totally ignorant about perl!
It also took me a while to realise that the default method for writing the
logs (emulate_httpd_log on) was not what the scripts are expecting. 
Thinking about it now it seems to me that the two problems are probably
somewhat related.  Setting the emulate_httpd_log tag to off gave me some
meaningful output in the logs analysis.  Perhaps a warning addition to the
web page which details these analysis scripts about the required format of
the log files would be useful?
regards,
Adrian Bassett
=====================================================================
Adrian Bassett                               Computer Services Centre
                                             Whiteknights
Telephone:   +44 (0) 1734-316630             Reading RG6 2AF
FAX:         +44 (0) 1734-753094             England.
Internet:    A.J.Bassett@reading.ac.uk
X400:        I=AJ;S=Bassett;O=reading;P=UK.AC;C=GB
X500:        c=GB@o=University of Reading@ou=Computer Services Centre
             @cn=Adrian Bassett
=====================================================================
Received on Wed Jun 12 1996 - 06:02:56 MDT

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