httplog.c

Name: httplog.c Usage: Parsing ncsa(cern) httpd logfile Author: (c) Armin Obersteiner EMail: Armin.Obersteiner@giga.or.at Description: 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 :) itīs made to work on logfiles with american date format and austrian/german time format (24h) to adapt for other logfiles: the first entry should be the site the second entry is the date in brackets [ ] to adapt this look in lines after "fopen" to include new countries add lines to structure "struct dummy c" donīt forget to increase "country_anz" to adapt time and date 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 :)