Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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 https://localhost/cgi-bin/awstats.pl. You will need to enable icons by adding the following line to your apache configuration file /etc/apache/httpd.conf:



  Alias /awstats-icon/ /usr/share/awstats/icon/

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.)


Copyright © 1995-2006 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire