On Fri, Mar 10, 2000 at 02:20:59PM +1100, Peter Vogel wrote:
| I have Webalizer installed and it works okay excpet can't give me any
| country statistics.  Mister Webaliser says "Enable DNS name lookups on
| your web server" and having scoured the documentation, I still can't see
| what this means or how to do it.

It means to cause the web server to log host names instead of IP
addresses in its log files. This requires the server to do DNS lookups
on all incoming connections, which has performance issues (a delay
while it looks up addresses, which can be pretty long if somethings
busted).

It is better to leave the web server alone, logging IP #s, and instead
to post process the log data with a simple perl script to translate IP
numbers to names before feeding to Webalizer (which I expect looks for
country suffices on hostnames).

For your curiosity I suggest you have a gander at:
        http://www.zip.com.au/~cs/scripts/squidlog2generic
which I use to munch squid proxy logs for consumption by some generic stat
graphing code I wrote. You'll see the simpleHost routine which embodies
some IP->name translation.

Some of it requires some stuff available only at my work, but the idea is
simple enough.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

slander.  slander i say.  the kotl is a man of integrity.  once bought,
always bought.  - Keith Schauer, CB900 Custom, DoD #0901
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to