the best web statistics application?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
noguru
Forum Commoner
Posts: 61
Joined: Thu Jun 06, 2002 4:03 am
Location: Just north of the City Of Gold, Land of Milk and Honey

the best web statistics application?

Post by noguru »

Hi

I would like to know what the best (free) web statistics logging system is and how does it work? Does Unix generate the log files automatically and does this system/app then use those logs to draw up statistics? I need to obtain visits to each individual virtual host on the server, not only visits to the server in general. I also need the exact location (IP address, country, ISP, etc.) from where this virtual host was being accessed. At the end of the month I would like to view a report showing all 200 or so virtual hosts and all their respective visits during this month and also from where in the world this site was accessed from. Sounds great, doesn't it? If it is possible.... As far as I could figure out, Webalizer only gives you hits per server and not per virtual host... not good enough unfortunately. If nothing like this exists for free, what apps are there for sale that will suit my needs?

Thanks in advance.
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

Straight from the Webalizer docs
17. How can I easily process multiple virtual hosts?
There are many ways to process multiple virtual hosts on the same machine. The easiest way I have found, provided that each host generates it's own log file, is as follows:

Create a central directory for your configuration files. (I use /etc/webalizer)
Make a configuration file for each virtual host and place them in the central directory. Each configuration file should have at least the HostName (domain), OutputDir and LogFile configuration settings specified. You probably will want to specify other settings specific to the domain, such as HideReferrer, HideSite and maybe some others as well. Name the file the same as the domain name, and end it with a .conf extension, so you can easily tell what vhost the configuration is for.
To process all your virtual sites with a single command, a simple shell command can now be used:

for i in /etc/webalizer/*.conf; do webalizer -c $i; done
After you have it set up, to add a new host, all you need to do is create a new configuration file and put it in the directory. It will be automatically picked up the next time you run the command.
Hope this helps.
User avatar
noguru
Forum Commoner
Posts: 61
Joined: Thu Jun 06, 2002 4:03 am
Location: Just north of the City Of Gold, Land of Milk and Honey

Post by noguru »

Excellent! Thanks!
Post Reply