home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
countv01.zip
/
readme.txt
< prev
Wrap
Text File
|
1997-12-11
|
4KB
|
84 lines
README for countHTTP v. 0.1 [10/12/1997]
I wrote this PowerWeb HTTP log parser for myself, since I needed to produce
nice-looking reports for my clients and I did not find any abequate tool
for server statistics calculation. It is a fairly simple Perl script, not
very much optimized for speed (not suitable for dynamic on-line calculations),
but it does most of what I need. If you need something different - tell me,
I might be able to include it in the next version. Otherwise, use it on your
own risk. I have tested it a lot, but can't guarantee bug-free operation.
Anyway, this is version 0.1, so be prepared. I won't list a full disclamer here,
simply state that I have no responsibility for the results of countHTTP
usage in any way! Oh, well, and you are free to modify the code if you wish...
Features
1. Calculate server average daily load (persentage of hits per hour);
2. Calculate server load profile (actual hits per month);
3. Calculate number of document requests per client;
4. Calculate subtotal number of requests from all clients for each document;
5. Calculate total number of requests from all clients for all documents;
6. Calculate total number of requests per each client;
7. All requests listings are sorted per number of hits (descending);
8. Client IP addresses are output by default, but may be resolved to client
names (using nslookup command). Beware that attempt to resolve all client
names for a large log file may take ages to complete. Also, due to the
nature of Perl forking mechanism and OS/2 TCP/IP 4.0x implementation, it
is almost impossible to interrupt this process once started. You may try
to kill the whole session, but success is not guaranteed!
9. Range of dates may be specified on command line, in which case only requests
within this range are included in all statistics calculations;
10.Perl regular expression may be also specified, in which case only requests for
matching documents (resources) are counted;
11.Strict HTML mode may be used, which calculates statistics only for HTML document
requests, ignoring GET/POST's, CGI script requests, requests for graphics, etc.
12.All requests from a specific network address range and/or domain name may be
ignored. Useful for filtering out your usual attempts to test/configure your
server via HTTP Web-based interface from workstation(s) on your LAN.
What countHTTP does not do at the moment.
1. HTTP request status codes are ignored. Hence, statistics caluculations do not
distinguish between successfull requests and errors. All are counted.
2. Multihomed server configuration is not supported directly. I do not have this
configured here, so I was not able to include this feature. However, I suspect
you may implement it using regular expression option from the command line.
3. IP address range filtering works only for class C network address range,
subnetting is not supported.
Installation
countHTTP is a CMD-wrapped Perl script. You must have Perl5 installed on your
system. Copy countHTTP.cmd in any directory included within your PATH statement.
Perl interpreter is called with -S switch from countHTTP.cmd, so it must find
script code anywhere on the PATH, if properly configured. Use countHTTP -help
to obtain command line options description. By default script looks for HTTP.log
file in the /powerweb/logs directory on the current drive. You may specify
alternative file name and path via -f option. For your convinience, you may look
inside the code using any text editor, locate the string:
*** UNCOMMENT AND EDIT THE TWO LINES BELOW ***
and set two variables to hold your own network address range and domain name.
This also may be specified at command line, but editing the code once will
allow you to avoid typing excessively long command line each time you call
countHTTP.
Please, send comments/bug reports to:
ivan@protein.bio.msu.su
countHTTP is available at:
ftp://ftp.protein.bio.msu.su/pub/os2/tcpip/powerweb/countHTTPv01.zip
---
Ivan Adzhubei
Dept. Molecular Biology
Faculty of Biology
Moscow State University
119899 Moscow, Russia
tel. +7 095 939 5485
fax. +7 095 939 4658
Web: http://www.protein.bio.msu.su/
E-mail: ivan@protein.bio.msu.su