Statistics on the Andromeda Web Server

Ray Schwartz (rps@andromeda.rutgers.edu)
Mon, 10 Feb 1997 20:12:11 -0500 (EST)

STATISTICS ON THE ANDROMEDA WEB SERVER

I've written some scripts that will give you some simple statistics on
your web page hits on andromeda.

For example, at the prompt you would type the command and a parameter
of your choosing--"/fac/rps/bin/pagehit.stats hello.html". This
example would show how may times a page with the chosen text string
"hello.html" was accessed (successful or not).

The text you chose searches through each line of the web server access
logfile. If the line has the text you have selected, the line is then
selected by the script for further processing. An example of a line
from the logfile is below.

unknown@ns3.rutgers.edu [Mon Dec 9 20:30:28 1996] GET /~donna/ce.html HTTP/1.0

For Dec. 9, 1996 to the present, the commands are (substitute %1 with
a text string of your choice to select a limited set).

/fac/rps/bin/pagehit.stats %1
For how many times certain pages were requested within the selected set
.

/fac/rps/bin/hosthit.stats %1
For how many times certain hosts requested the selected set.

/fac/rps/bin/monthhit.stats %1
For how many times per month the selected set was requested.

/fac/rps/bin/dayhit.stats %1
For how many times per day the selected set was requested.

/fac/rps/bin/alldata.stats %1
For requesting the all the raw data containing the given text string.

/fac/rps/bin/last.stats
To review what the last entry is in the access log.

For stats between the dates of Jan. 31, 1994-Dec. 9, 1996, add .old to
the end of all the previous commands (e.g.,
/fac/rps/bin/pagehit.stats.old hello.html).

Any questions, give me a call. /Ray
Ray Schwartz, Multimedia/Reference Librarian (W) 201-648-5917
John Cotton Dana Library (Fax) 201-648-5944
Rutgers University (H) 201-656-8807
185 University Avenue rps@andromeda.rutgers.edu
Newark, NJ 07102 schwartz@panix.com
URL: http://newark.rutgers.edu/~rps/