A good and free log analysis tool - awstats
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
- Monitoring Log files in Realtime on Unix - December 6, 2006
Trackbacks
Trackback Address: 15/387E4C665742E09984248C1EF7C7B7BE
Comments
On 05/17/2004 at 5:02:48 AM EDT 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 EST 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 EST 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 EDT Merlin18 wrote:
4
A routine is established for rest and play. ,
Post a Comment
Recent Entries
- Cache Template in Request Setting Explained
- What Version of Java is ColdFusion Using?
- ColdFusion 9 Performance Brief from Adobe
- Request Filtering in IIS 7 Howto
- J2EE Session Cookies on ColdFusion / JRun
- Hands on ColdFusion Security Training
- ColdFusion 9 Solr Vulnerability - Are you at Risk?
- FCKEditor Year 2010 Bug for Firefox 3.6 with ColdFusion
I have a project hosted on sourceforge. How can I setup AWStats on the sourceforge site itself ?
Thank you, Colossus



add to del.icio.us



