A good and free log analysis tool - awstats

web

There are a lot of free http log file analysis tools out there that haven't been updated since the mid 90's, awstats however is both free, and up to date. It looks a bit like web trends (though I haven't used web trends in several years). Here's an online demo. awstats can be used on several web servers including IIS, and Apache. You can either have generate static html files, or run with a perl script in the cgi-bin.

Here's a quick rundown of setting it up on unix/apache

Each virtual web site you want to track stats for should have a file /etc/awstats.sitename.conf the directives for the configuration file can be found here: http://awstats.sourceforge.net/docs/awstats_config.html they also provide a default conf file in cgi-bin/awstats.model.conf you can use this as a base.

Make sure your log files are using NCSA combined format, this is usually done in apache by saying CustomLog /logs/access.log combined you can use other formats but you have to customize the conf file.

You will probably want to edit the LogFile directive to point to where your logfile is stored, SiteDomain this is the main domain for the site, HostAliases lets you put in other domains for the site, and the DirData directive lets you specify where the awstats databases will be stored (each site will have its own file in the directory).

Once that is setup you will want to update the database this is done from the command line by running

perl awstats.pl config=sitename update 

Now copy everything in the wwwroot folder to a web root, and visit http://sitename.com/cgi-bin/awstats.pl if you want to view other domains use /cgi-bin/awstats.pl?config=othersitename

Where sitename would be the name of your config file awstats.sitename.conf

If you want to generate static html files run the awstats_buildstaticpages.pl script found in the tools folder. You have to give it the path to the awstats.pl perl script, and a directory to put the static html files in.

perl awstats_buildstaticpages.pl -config=sitename -awstatsprog=/web/cgi-bin/awstats.pl 
  -dir=/web/stats/sitename/

More setup info can be found here: http://awstats.sourceforge.net/docs/index.html



Related Entries

7 people found this page useful, what do you think?

Trackbacks

Trackback Address: 15/387E4C665742E09984248C1EF7C7B7BE

Comments

On 05/17/2004 at 5:02:48 AM UTC Colossus wrote:
1
Hi,

I have a project hosted on sourceforge. How can I setup AWStats on the sourceforge site itself ?

Thank you, Colossus

On 01/27/2005 at 5:02:42 PM UTC ben wrote:
2
Sorry, but this description is totaly useless. Im sure that you did a LOT more to get awstats working than what you have here. I know its hard to make notes while you are installing and de-bugging, but a blow-by-blow discription is a lot more usefull to those that follow. Please consider those that want to learn and do not have access to a local Linux gru. Thanks

On 12/08/2005 at 1:59:14 PM UTC Dustin Wright wrote:
3
I did a slightly longer review on my blog http://www.atlas-tuesday.com/awstats-review

On 10/22/2009 at 9:11:06 PM UTC Merlin18 wrote:
4
A routine is established for rest and play. ,

On 07/29/2010 at 5:54:51 AM UTC tahitian noni juice wrote:
5
Great Post. I add this Post to my bookmarks.

On 08/25/2010 at 6:01:10 AM UTC sok noni wrote:
6
Great Post. I add this Post to my bookmarks.

On 08/25/2010 at 11:30:39 AM UTC kredyty wrote:
7
I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

On 08/27/2010 at 12:17:10 PM UTC noni wrote:
8
Very Interesting Information! Thank You For Thi Post!

On 08/27/2010 at 10:45:15 PM UTC sok noni wrote:
9
Thanks For This Post, was added to my bookmarks.

On 08/28/2010 at 11:45:29 AM UTC wakacje wrote:
10
Thank You For This Blog, was added to my bookmarks.

On 08/29/2010 at 2:21:21 PM UTC noni wrote:
11
Very Interesting Blog! Thank You For Thi Blog!

On 01/11/2011 at 1:33:14 AM UTC kitWeipSevesk wrote:
12
I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

On 02/19/2011 at 5:25:00 PM UTC disneyland los angeles wrote:
13
Awesome Blog. I add this Blog to my bookmarks.

On 02/22/2011 at 12:01:08 PM UTC police auctions Chesapeake wrote:
14
Great Blog. I add this Post to my bookmarks.

On 06/16/2011 at 3:11:16 PM UTC engendJoymn wrote:
15
ipage hosting information

On 06/23/2011 at 11:30:56 AM UTC PaxPerVargere wrote:
16
cheap vps server - Japan

On 07/14/2011 at 11:11:59 AM UTC justhostweb wrote:
17
justhost hosting cheap hosting http://technologycanada.com/justhost-hosting/

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?