----- Original Message -----
From: "William Glover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 01, 2002 3:27 AM
Subject: [freenet-dev] watchme stats


> I'm attaching an a simple count of traffic by message type that might be
of
> some use. I did some manual massaging to get this so I don't have a script
to
> hand out. It was a two step process of getting a list of all message types
in
> the logs with no dups and then counting the occurance of each. Lotsa pipes
> and shell, not much finesse.

William:

I was interested in similar information just for kicks a while back.  Thanks
for your output - attached is a small script I threw together that does this
same counting with perl.

To run it, just run countTypes.pl with an argument of the directory that
holds the logfiles you're interested in.  It will only look in filenames
that have IP addresses for information on various request types.  (Basically
if the filename is a set of 4 numbers separated by dots)

If it's useful, Ian, throw it in the scripts directory on hawk.

-- David

Attachment: countTypes.pl
Description: Binary data

Reply via email to