AminetAminet
Search:
84799 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/misc/http_log_2.lha

Mirror:Random
Showing: ppc-amigaos icongeneric icon
No screenshot available
Short:Parse httpd log files
Uploader:
Type:comm/misc
Architecture:m68k-amigaos
Date:1995-04-12
Download:comm/misc/http_log_2.lha - View contents
Readme:comm/misc/http_log_2.readme
Downloads:618

     httplog.c

     (c) Armin Obersteiner

     Parsing ncsa/cern httpd logfile

     USAGE: httplog [-s <keyword>] [-l] <logfile>

     <logfile>      -  httpd <logfile>
     -l             -  long: country statistics
     -lt            -  long: time statistics
     -s <keyword>   -  search for <keyword>

     compiles on:   MaxonC++ (amiga)
                    gcc (amiga)
                    gcc (bsd)
     (it should actually compile on any platform then :)

      ->>>  gcc -o httplog httplog.c -lm

     it´s made to work on ncsa logfiles:

        Site [Weekday Month Day Hours(24):Min:Sec Year] Method URL Protocol

     and cern logfiles:

        Site - - [Day/Month/Year:Hours(24):Min:Sec +GMT_Hours] "Method URL Protocol" #1 #2



     to include new countries:

           -   add lines to structure "struct dummy c"
           -  don´t forget to increase "country_anz"

     to adapt time and date for other logfile formats:

           -   do the same with "struct dummy d" / "struct dummy t"
           -  don´t forget to increase/decrease "day_anz" :)  / "time_anz"

     the second entry in these stuctures (dummy) is the string to search for
     (use spaces or brackets, because it´s more reliable then)
     the third entry is the string for output


     CU Armin :)

        ( Armin.Obersteiner@giga.or.at )


Contents of comm/misc/http_log_2.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 6727   14860  45.3% -lh5- c983 Apr 10  1995 httplog
[generic]                 3076   11739  26.2% -lh5- 8fab Apr 10  1995 httplog.c
[generic]                  602    1337  45.0% -lh5- d6a3 Apr 10  1995 httplog.doc
[generic]                  676    1411  47.9% -lh5- 3e45 Apr 10  1995 httplog.html
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files   11081   29347  37.8%            Apr 12  1995
Page generated in 0.01 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>