Usage

pwebstats creates a collection of html files and images in a group of directories under the output directory specified below. At present, pwebstats produces output statistics over daily, weekly or monthly periods. Note: the input logfile(s) must be split into separate daily, weekly or monthly files. A utility (log-splitter.pl) has been included to assist you in doing so.

  1. Edit the configuration file (./conf/pwebstats.conf) to reflect the location of the pwebstats distribution directory on your system, the location of the output directory, and your site-specific details.
  2. Some config details can also be given on the command line. Type ./pwebstats for a full list of options.
  3. Type the following command in the distribution directory to run pwebstats:
    ./pwebstats -c conf/pwebstats.conf
    The output will go in the directory specified in the config file or on the command line.
  4. If you want page-specific stats generated, have a look at the file ./conf/pwebstats.pages which is the configuration file for the page-based part of pwebstats. The format is a series of colon-separated directives in the format:
    PERL pattern for html collection (or just path to html file):
    Description of file or collection:Level of Indentation (for subsections):
    URL to the page itself (to create an active link)

    Some examples are available.

    I’ve made copy of our local page-config file and a copy of the pwebstats output for that page, available so you can get an idea of what can be done with page-based stats.

    See http://www.its.unimelb.edu.au/manuals/perl5/perlre.html for details on perl regular expressions.

Leave a Reply

You must be logged in to post a comment.