Are there any log analysis scripts?

Eric Lease Morgan (eric_morgan@ncsu.edu)
Wed, 17 Jul 1996 09:36:56 -0400


Do you know of any scripts that can be used to analyze reflector logs?

I have written a very simple script (below) that I run out of cron on an hourly
basis. This script simply extracts the lines in the reflector log containing
the client connections. Have other people created any other sort of log file
analysis tools? And if so, then where can I find them?

#!/bin/csh

# file name: extract-users
# extract connected users to the reflector and
# zero out the log file

# Eric Lease Morgan
# http://www.lib.ncsu.edu/staff/morgan

# June 27, 1996 - original coding

set userFile = '/usr/users/Eric/reflector/reflect.users'
set logFile = '/usr/users/Eric/reflector/reflect.log'

date >> $userFile
grep 'Client at source' $logFile >> $userFile
cp /dev/null $logFile

Here is some sample output:

Thu Jun 27 16:00:01 EDT 1996
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.36 is opening a connection
Thu Jun 27 17:00:02 EDT 1996
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 152.1.139.102 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.41 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.41 is opening a connection
Client at source 204.144.148.36 is opening a connection
Thu Jun 27 18:00:02 EDT 1996
Client at source 204.144.148.41 is opening a connection
Client at source 204.144.148.36 is opening a connection
Client at source 204.144.148.36 is opening a connection

-- 
Eric Lease Morgan
NCSU Libraries
http://www.lib.ncsu.edu/staff/morgan/