Short: Parses NCSA/CERN httpd logfile Author: Armin Obersteiner and Tomas Willis Uploader: tomas@cae.wisc.edu (Tomas Willis) Version: 1.4 Type: comm/tcp Requires: AmiTCP 4.0 or above > httplog.c > > (c) Armin Obersteiner > > Parsing ncsa/cern httpd logfile > > USAGE: httplog [-s ] [-l] > > - httpd > -l - long: country statistics > -lt - long: time statistics > -s - search for Armin Obersteiner wrote a nice httpd log parser. I played with it, to suit my fancy. First of all, I found that there were many numeric addresses in my logfiles. That made for a large number of unidentified domains when run with the -l flag. I didn't like that, so I invoked AmiTCP to find the name that goes with the missing address. It doesn't always work, if the local DNS server cannot find a name to go with an IP number, but when the server is helpful, it does work. Next, I added all of the countries to be found in the ISO 3166 document. Then, I made the output for -l sorted by increasing number of hits. Compiles under SAS/C 6.56 (sc link httplog.c) Requires AmiTCP >=4.0 This distribution include source, an optimized 68030/68881 version and a plain 68000/IEEE math version. ---- ciao, tomas willis ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 29712 17607 40.7% 28-Dec-95 12:44:20 httplog.000 29336 17493 40.3% 28-Dec-95 12:48:24 httplog.030 22999 7216 68.6% 28-Dec-95 12:48:28 httplog.c 183 110 39.8% 28-Dec-95 12:21:58 httplog_rev.h 225 125 44.4% 28-Dec-95 12:21:58 httplog_rev.i 2 2 0.0% 28-Dec-95 12:21:56 httplog_rev.rev 233 146 37.3% 28-Dec-95 12:43:18 scoptions.000 259 160 38.2% 28-Dec-95 12:48:26 scoptions.030 1549 745 51.9% 28-Dec-95 12:36:18 httplog.doc 822 500 39.1% 28-Dec-95 12:38:22 readme.tcw -------- ------- ----- --------- -------- 85320 44104 48.3% 29-Dec-95 12:43:38 10 files