Listing 1. master.cfg for Virtual Hosts

# Master.cfg File for all local Virtual Hosts
# Requires additional .cfg files for individual
# sites or pages. Created by Gaelyne R. Gasson
# for "Analyzing Web Stats with Analog"
# Customise to suit your requirements.
# Turn DEBUG and WARNINGS on to debug and solve
# mysteries. For use with cron scripts, once you
# are satisfied with your set up, these should be
# turned off, otherwise you will receive e-mail
# with warnings and information in it each time
# cron job is run. If using multiple log files,
# WARNINGS -L will turn off warnings about
# the duplicated dates/double counting. According
# to the author this is a warning message only and
# has no effect on Analog's analysis
DEBUG OFF
WARNINGS OFF
# HEADERFILE, LOGO and IMAGEDIR allow you to
# customise the appearance of Reports.
HEADERFILE /dir/path/log-header.html
IMAGEDIR /images/analog/
LOGO none
MARKCHAR "x"
DIRSUFFIX index.html
GOTOS OFF
RAWBYTES OFF
SEPCHAR,
CASE INSENSITIVE
ASCIIPAGEWIDTH 72
HTMLPAGEWIDTH 72
# Causes request report to have links/urls for
# pages listed.
LINKINCLUDE pages
# What files are considered "pages" for
# counting purposes.
PAGEINCLUDE *.html
PAGEINCLUDE *.htm
PAGEINCLUDE *.shtml
PAGEINCLUDE *.phtml
# Only pages are counted as requests.
REQINCLUDE pages
# Exclude specific pages, files and entire
# directories from being counted as pages.
PAGEEXCLUDE *jumplist.html
PAGEEXCLUDE *../bottom.shtml
PAGEEXCLUDE *../top.shtml
PAGEEXCLUDE */global/*
# These directives are useful if you've included
# FTP and XFERLOG logs and have customers
# accessing their site via FTP. These accesses
# are not counted.
PAGEEXCLUDE */public_html/*
DIREXCLUDE */public_html/*
REQEXCLUDE */public_html/*
TYPEEXCLUDE */public_html/*
# DIREXCLUDE keeps the directory from being listed
# or counted in the Directory Report.
DIREXCLUDE */global/*
# Exclude files and directories from being counted
# as requests.
REQEXCLUDE */global/*
REQEXCLUDE */bottom.shtml
# Exclude cgi programs from the file Type Report.
TYPEEXCLUDE *.cgi
TYPEEXCLUDE *.pl
# Keep cgi-bin information from being made public.
# These aren't required if the reports
# aren't published on the web. Ignore line wraps.
REQOUTPUTALIAS */cgi-bin/* "admin"
REFOUTPUTALIAS <a HREF="http://main-host.com/cgi-bin/* "admin" " TARGET="_blank">http://main-host.com/cgi-bin/* "admin" </a>
REFOUTPUTALIAS <a HREF="http://vhost1.com/cgi-bin/* "admin"" TARGET="_blank">http://vhost1.com/cgi-bin/* "admin"</a>
FAILOUTPUTALIAS */cgi-bin/* "admin"
FAILREFOUTPUTALIAS */cgi-bin/* "admin"
REDIROUTPUTALIAS */cgi-bin/* "admin"
# Turn all reports on.  Specific reports are
# turned off below.
ALL ON
# Lists most recent information first. For
# example, the current month is listed first
# in the MonthlyReport.
ALLBACK ON
# TIMECOLS affect how Reports are displayed and
# what information is included with it, as
# described below. The PpRrBb format is a good
# way to initially see all available formats in
# use before deciding on the format you prefer.
# You can also set each of the time reports
# separately with the appropriate command, such
# as HOURCOLS or MONTHCOLS etc.). Lower-case
# letters refer to percentages:
#    P=Pages  R=Requests  B=Bytes
# // p = pages r =  requests b = bytes.
# TIMECOLS PpRrBb
TIMECOLS PRB
# ALLGRAPH allows you to decide whether or not the
# graphs displayed are in ASCII format or as a
# graphic. P = graphic // p = ASCII ALLGRAPH P
# turns off the Virtual Host report. Useful if you
# have separate log files for each virtual host.
# It's "on" by default with the ALL ON command
VHOSTS OFF
# For log file formats with virtual hosts listed
# as part of the log format, this tells Analog
# the name of your virtual hosts, and is used to
# create the Virtual Host report.
# VHOSTINCLUDE vhost1
FIVE OFF
# FIVE is a 5 minute report that I don't use.
# FIVEROWS 10
# Number of 5 minute periods listed.
QUARTER OFF
# QUARTER gives 15 minute reports.
QUARTERROWS 96
# How many 15 minute periods to include.
HOURLY OFF
# Hourly Summary. I find Hourly Report is enough.
FILETYPE OFF
# FILETYPE is useful for activity and FTP reports.
SIZE OFF
# A report on file sizes. Useful for FTP reports.
FULLBROWSER off
# Browser Report. I prefer the Browser Summary.
MONTHROWS 0
# Number of months in Monthly Report. 0 = all
WEEKROWS 52
# Number of weeks for the weekly report.
FULLDAYROWS 31
# Number of days for the Daily Report.
FULLHOURROWS 48
# Number of Hours for the Hourly Report.
# Non-Time related reports have floor and sortby
# commands. Floor limits the amount and type of
# data. The type can be: r=request, p=page,
# b=bytes, d=date, x=random, a=alphabetical
# If you use a floor, the sortby format should
# match the floor type. I use requests for all
# floor limits on non-time reports and also use
# requests for the sortby commands.
REQFLOOR 1r
REQSORTBY requests
HOSTFLOOR 1r
HOSTSORTBY requests
DOMFLOOR 1r
DOMSORTBY requests
SUBDOMFLOOR 1r
SUBDOMSORTBY requests
REFFLOOR 10r
REFDIRFLOOR 1r
REFDIRSORTBY requests
DIRFLOOR 1r
SUBDIRFLOOR 1r
DIRSORTBY requests
SUBDIRSORTBY requests
BROWFLOOR 10r
SUBBROW Mozilla/*
SUBBROW Lynx/*
SUBBROWFLOOR 1r
SUBBROWSORTBY requests
# Displays Australian sub domains listed below the
# ".au" listing in the HOST Report.
SUBDOMAIN *.au
# Similar to the SUBDOMAIN command, this lists
# referrers that have "yahoo" in the domain
# grouped together, if number of requests match.
REFDIR <a HREF="http://*yahoo*/*    " TARGET="_blank">http://*yahoo*/*    </a>
USEREXCLUDE root
HOSTALIAS *.aol.com aol.com
# Displays all AOL Host machines in a category.
HOSTEXCLUDE 127.0.0.1
# Excludes the local host.
HOSTEXCLUDE *.main-isp.com
# Excludes any machines on the local host.
# REFALIASES below lump all local hosts into
# one group for Referrer Report. (Ignore wrap)
REFALIAS <a HREF="http://*.main-isp.com/* "Internal-local" TARGET="_blank">http://*.main-isp.com/* "Internal-local</a>
  hosts"
REFALIAS <a HREF="http://main-isp.com/* "Internal-local" TARGET="_blank">http://main-isp.com/* "Internal-local</a>
  hosts"
REFALIAS <a HREF="http://*.vhost1.com/* "Internal-local" TARGET="_blank">http://*.vhost1.com/* "Internal-local</a>
  hosts"
REFALIAS <a HREF="http://*vhost1.com/* "Internal-local" TARGET="_blank">http://*vhost1.com/* "Internal-local</a>
  hosts"
# For intranets, this excludes internal accesses
# being considered as a referrer.
REFEXCLUDE <a HREF="http://123.12.123/*" TARGET="_blank">http://123.12.123/*</a>