View Full Version : Webstats - Unresolved Countries
aussie_cyberbob
6-10-02, 10:10 PM
G'day from a new user from "Down Under".
My Webstats monthly reports show the "Usage by Country" at the bottom as "100% Unresolved/Unknown". This information is important to me. Has anyone else got this problem or can you see a breakdown of your visitors by country?
cheers
Bob
alphadesk
6-10-02, 10:17 PM
You will need to edit your .conf file. Here is the link that will show a sample file and all the options you can add.
ftp://ftp.mrunix.net/pub/webalizer/sample.conf
aussie_cyberbob
6-10-02, 10:48 PM
Thanks for the speedy and informative reply, AlphaOne.
I'm looking at all the options available to me now!
cheers
Bob
Yes, thank you, that's one for the favorites!
aussie_cyberbob
6-11-02, 12:16 PM
I've been looking at the above mentioned .conf file
and it would appear that the CountryGraph should be turned on by default anyway (although I have now added the appropriate line). In fact, I now see that I have two other packages where the Webstats work fine in respect of the Countries without me having changed any settings.
They live on these servers:
quasar.powweb.com
magnatar.powweb.com
whereas the one that doesn't lives on
comet.powweb.com
leading me to wonder if it could be the way that Webalizer has been installed on the comet server? Any thoughts?
cheers
Bob
I'm on Saturn server, and I haven't gotten it to work either. The sample.conf file reads:
# Country Graph allows the usage by country graph to be disabled.
# Values can be 'yes' or 'no', default is 'yes'.
#CountryGraph yes
Since default is yes, I tried this:
CountryGraph no
All that did was take off the pie chart and use the table only. I will try changing it back to "yes", but that will probably only add the pie chart back, and not actually look up the countries. Did I do something wrong, or is there another line I should add? Or, is it a problem with the server?
Thanks for your help,
- Jeff
alphadesk
6-11-02, 09:51 PM
Hey Jeff, Try adding to the bottom of the webilizer.conf file
DNSCache DNSCachefile
DNSChildren1
Mirzabah
6-11-02, 10:40 PM
Originally posted by alphadesk
Hey Jeff, Try adding to the bottom of the webilizer.conf file
DNSCache DNSCachefile
DNSChildren 1Just to explain, in order for webalizer to figure out which country a given hit comes from, it needs the host name. The access logs only contain host addresses, so you have to tell webalizer to do a reverse DNS (rDNS) lookup on each address - this is what the DNSCache and DNSChildren directives do. DNSCache tells webalizer where to cache the results of the rDNS lookups - that way it only has to do one lookup per address instead of one per hit (which would make compiling stats very slow). DNSChildren tells it how many child processes to create to handle the rDNS lookups - it should normally be set to 1.
Note that it's not obvious in alphadesk's post, but there should be a space between DNSChildren and 1.
Cheers,
Mirzabah.
Yes, I know all about reverse lookups, I've done them many times before :)
I have a question: does the filename for the DNS cache file matter?
Also, I was doing a bit of reading and found some information that said the number of "DNS Children" should be between 5 and 20... which should I use?
- Jeff
Mirzabah
6-12-02, 12:20 AM
Originally posted by Jeff321
Also, I was doing a bit of reading and found some information that said the number of "DNS Children" should be between 5 and 20... which should I use?That advice is probably in a somewhat different context than here. Generally speaking, the larger the number, the quicker the log processing. But each additional process consumes system resources (memory, file handles, etc) and overall system performance and reliability can suffer if there are too many processes active at any one time. On a machine serving one or two websites, setting DNSChildren to 20 or more is probably reasonable. However, each PowWeb server is serving hundreds or even thousands of sites and setting DNSChildren to 1 is probably prudent.
SilkWebs
7-22-02, 04:18 PM
The DNSCache and DNSChildren directives did the trick! Now I just have to wait for it to change. [/B][/QUOTE]
Thanks!
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.