/* analhead.h: header file for analog 0.9beta3 */ /* Please read the README, or http://www.statslab.cam.ac.uk/~sret1/analog/ */ #define DIRSUFFIX "index.html" /* the default filename tried if a directory is requested. The program combines statistics from /dir/ and /dir/DIRSUFFIX (and also from /~name/ and /%7Ename/ ). */ #define URLHASHSIZE (499) /* the size of the hash table for URLs; must be odd, should be prime. */ /* Too small will make the program slower; too big might use a bit */ /* more memory and be slightly less efficient. Maybe half the number */ /* of URLs expected, but it shouldn't be at all critical. */ #define DIRHASHSIZE (97) /* ditto for directories */ #define HOSTHASHSIZE (5003) /* ditto for all hostnames that have accessed us */ #define MAXLINELENGTH (2048) /* the maximum length of any line in the logfile (long lines can */ /* result from searches). Longer lines will be thrown away. */ #define MAXSTRINGLENGTH (256) /* how long is the longest string we want for a filename, or our organisation name? NB Have hardwired domain names and locations at 255, so this should be at most 256. */ #define MAXMONTHS (120) /* at most how many months' data after Nov 1990 are we going to analyse? */ #define MINPAGEWIDTH (25) #define MAXPAGEWIDTH (240) /* the min and max allowed values of the pagewidth variable */ /*** ALL the options from here on can be overridden on the command line ***/ #define LOGFILE "/usr/dpmms/etc/httpd/logs/access_log" /* The name of the default logfile; use "stdin" for stdin */ #define DOMAINSFILE "/users2/sret1/misc/domains.tab" /* the name of the file where the domain definitions live; see README for the format of this file */ #define HOSTNAME "the Statistical Laboratory" /* the name of your organisation or WWW host. This is used for printing at the top of the output */ #define HOSTURL "http://www.statslab.cam.ac.uk/" /* the URL of your host's home page, for linking to at the top of the output; use "-" for no linking. */ #define MIN_URL_REQS (10) /* the min. no. of requests a URL should have before appearing on the request report. Setting this to about 10 clears out a lot of junk. */ #define MIN_URL_BYTES (1) /* if we are sorting by bytes, use this instead; it is measured in 1/100ths of percentage of total bytes transferred. */ /* now the same for directories and domains. */ #define MIN_DIR_REQS (10) #define MIN_DIR_BYTES (1) #define MIN_DOM_REQS (1) #define MIN_DOM_BYTES (0) /* how should the request report, domain report and directory report be sorted? Legal values ar BYREQUESTS, BYBYTES and ALPHABETICAL */ #define REQSORTBY (BYREQUESTS) #define DOMSORTBY (BYBYTES) #define DIRSORTBY (BYBYTES) #define MARKCHAR '+' /* a character for the graphical displays */ #define PAGEWIDTH (65) /* the width of the output. Standard text screens have 80 columns, but for WWW browsers something like 65 is probably better. */ /* whether we want each of the reports by default */ #define MONTHLY (ON) #define DAILY (ON) #define HOURLY (ON) #define DOMAIN (ON) #define DIRECTORY (ON) #define REQUEST (ON) #define DIRLEVEL (1) /* the level of directory report; see README */ #define COUNTHOSTS (ON) /* whether we want to count the number of distinct hosts */ #define LASTSEVEN (ON) /* whether we want statistics for the last seven days */ /* the default values for the value of each MARKCHAR on the graphs. 0 means choose a sensible value at the time based on number of requests and the value of PAGEWIDTH. */ #define MONTHLYUNIT (0) #define HOURLYUNIT (0) #define DAILYUNIT (0) #define PAGELINKS (ON) /* whether pages are linked to in the request report by default. */ /* Can be OFF, ON (link to pages) or ALL (link to everything). */