Smartlab Software logo

AWStats: How to Accomplish Certain Tasks

AWStats logo How to extend the capability of AWStats.

Steps

  1. Acquire AWStats, other programs, and pertinent information
  2. Install AWStats on the 1and1 shared server
  3. Install AWStats on your computer
  4. Set up the AWStats config file
  5. Create a usable log file
  6. Create/update the AWStats database
  7. Create a traffic web page
  8. Create report batch files
  9. Analyze the traffic page
  10. Tasks

Extending AWStats

  1. Extras
  2. Geographic Plug-ins
  3. How To

Help

  1. Glossary
  2. FAQ
  3. Pages not found FAQ
  4. Stop Referrer Spam

How to Add a Search Engine to AWStats Report

Recently, Microsoft released bing search engine. Bing did not show up in the AWStats report under Links from an External Search Engine section. It was under Links from an external page (other web sites except search engines). Here is how to change that.

  1.  In wwwroot/cgi-bin/lib make a backup copy of search_engines.pm
  2. Add the following under @SearchEnginesSearchIDOrder_list1 as a new line:
    'bing\.com',
    I added it as the first line under the comment Major international search engines
  3. Add the following under %SearchEnginesHashID as a new line:
    'bing\.com','bing',
    I added it as the first line.
  4. Add the following under %SearchEnginesKnownUrl as a new line:
    'bing','q=',
    I added it as the first line.
  5. Add the following under %SearchEnginesHashLib as a new line:
    'bing','<a href="http://www.bing.com/" title="Search Engine Home Page [new window]" 
    				target="_blank">Bing</a>',
    I added it as the first line.
  6. Save the changes.
  7. Upload to the server, if necessary.

How to Remove Images from AWStats Reports

If you want to remove image files from your awstats reports, modify the SkipFiles variable in the /etc/awstats/awstats.conf (or awstats.YOURHOST.conf)

Do a search for “SkipFiles” in the file using nano/vi/emacs and find the section that talks about “Use SkipFiles to ignore access to URLs that match one of the following entries…” The SkipFiles line should look similar to the following:

SkipFiles="REGEX[.jpg$] REGEX[.gif$] REGEX[.png$]”