[lug] Apache Logs

Jeff Schroeder jeff at neobox.net
Thu Dec 12 11:46:13 MST 2002


jdavis wrote:

>   can someone suggest a package to parse apache logs
> and report how users got to a page...i.e. via google or alta vista.

I've been using Analog (http://www.analog.cx) for several years and it's 
wonderful.  Very fast, very powerful, very flexible, very configurable.

To get your Google/AltaVista results, you'll need to turn on the 
"referrer" report in Analog, and of course your Apache logs will have 
to be recording the referrer page, so in httpd.conf you'll need 
something like:

LogFormat "%h %l %u %t \"%r\" %>s %b \"{Referer}i\" referrals

and in your VirtualHost (or however you're doing it) you'll have to set 
the log format to match what you just defined:

CustomLog /var/log/mywebsite.log referrals

HTH,
Jeff



More information about the LUG mailing list