Tub 'o' Dogs

69. Peastat

Peastat is a simple, free, 'live' web stats analyser.

Peastat works differently to other web stats tools: it looks at the last chunk of your log file to create real-time summaries of recent user activity. What you lose in trend analysis - which you're probably already getting from Analog/Webalizer/AWStats/Google Analysis - you gain in focus on what your users are doing right now.

Peastat Features

System Requirements

Linux/BSD/OS X hosts typically support both requirements.

Installation

  1. Configure the 'logfile' and 'rooturl' values
  2. Upload pea.py somewhere it can be executed on your web server (e.g. your cgi-bin)
  3. Make pea.py executable (set its permissions to 755)

Usage

Example

Peastat for throwingbeans.org

Download

Peastat 0.2 can be downloaded here.

Version history

0.2, 18th December, 2005

0.1, 11th September, 2005

FAQ

  1. The name of my log file changes periodically - how do I tell Peastat where to find it? Format a string for the current date with Python's time module, and insert it in the logfile setting:
    year_slash_month = time.strftime('%Y/%m') # e.g. '2005/12'
    logfile = "/var/log/apache/" + year_slash_month + "/access_log"
  2. How do I tell Peastat to ignore referrals from search engines? Currently the only way to do this is to edit the ignorelines pattern. For example:
    ignorelines = re.compile('(google)|(yahoo)\.co').search

Acknowledgements

Help, bug reports, suggestions

Email thomasdyson at gmail dot com

[Valid Atom 1.0]