Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Web Log Summaries

A very nice web log analyser and summary generator is awstats. Install the package:

  # wajig install awstats

This will give you a statistics summary page at http://localhost/cgi-bin/awstats.pl. You will need to enable icons by adding the following line into a new file /etc/apache2/conf.d/awstats:

Alias /awstats-icon/ /usr/share/awstats/icon/
And then restart the web server:
$ wajig restart apache2
Should now be getting a nicer looking page.

Also you may like to include browser and host OS information in the summary by using the apache combined log format:

  LogFormat=1

Be sure the apache generates this information (the default is not to). Your /etc/apache/httpd.conf should contain:

  CustomLog /var/log/apache/access.log combined

To allow the analyser to run through the apache log files (/var/log/apache/access) it needs permission to be able to read them. The simplest approach is to:

  # chmod o+r /var/log/apache/access*

The summary log file can now be generated with:

  # /usr/lib/cgi-bin/awstats.pl -config=awstats -update

(This is what cron also runs every 10 minutes, by default.)


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © Togaware Pty Ltd. . Creative Commons ShareAlike V4.