I have a small problem with webalizer. I use it to analyze logs of a small web server hosting a single site, and the only thing I am interested in from webalizer is the piechart diagram it produces about the geographic distribution of people visiting the site.
However, the piechart it produces gives me a very crude information, with 50% or so of visitors belonging to "unresolved", some to .net, some to .com and some country-specific. For an example, you can take a look at
http://sith.ipb.ac.rs/webal/usage_201103.html#TOPCTRYS
I would like some more fine-grained diagram, at least in the "unresolved" part. Am I missing something, or is this really as good as it gets?
I have the GeoIP and GeoIP-data packages installed, but they don't seem to do anything. I looked up the /etc/webalizer.conf file, but there seems to be no relevant settings to tweak. I've even read the webalizer man page ;-) , but failed to find anything related. Using google produced (among other things) this how-to:
http://www.lifelinux.com/how-to-install-webalizer-on-centos/
but that is for CentOS 5.4, it is written by an unknown source and suggests I should recompile webalizer and GeoIP from source, which is not the "proper" way to do it, I guess.
This is all on a freshly updated CentOS 5.6. :-) I'd appreciate any pointers.
TIA, :-) Marko
From webalizer.conf.sample
# The GeoIP option enables or disables the use of geolocation # services provided by the GeoIP library (http://www.maxmind.com), #GeoIP no # GeoIPDatabase specifies an alternate database filename to use by the # GeoIP library. If an absolute path is not given as part of the name #GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
It works only, if it is compiled in, of course. I don't know if that is the case with the webalizer coming with CentOS. If the conf doesn't contain these comments it is probably not compiled in.
Kai
On Sunday 10 April 2011 12:49:40 Kai Schaetzl wrote:
From webalizer.conf.sample
# The GeoIP option enables or disables the use of geolocation # services provided by the GeoIP library (http://www.maxmind.com), #GeoIP no # GeoIPDatabase specifies an alternate database filename to use by the # GeoIP library. If an absolute path is not given as part of the name #GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
It works only, if it is compiled in, of course. I don't know if that is the case with the webalizer coming with CentOS. If the conf doesn't contain these comments it is probably not compiled in.
Ok, what would be the proper way to verify the compile-time options for the package?
And if it is not compiled with GeoIP support, can anyone explain why?
Thanks! :-) Marko
2011/4/10 Marko Vojinovic vvmarko@gmail.com:
On Sunday 10 April 2011 12:49:40 Kai Schaetzl wrote:
From webalizer.conf.sample
# The GeoIP option enables or disables the use of geolocation # services provided by the GeoIP library (http://www.maxmind.com), #GeoIP no # GeoIPDatabase specifies an alternate database filename to use by the # GeoIP library. If an absolute path is not given as part of the name #GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
It works only, if it is compiled in, of course. I don't know if that is the case with the webalizer coming with CentOS. If the conf doesn't contain these comments it is probably not compiled in.
Ok, what would be the proper way to verify the compile-time options for the package?
rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" webalizer might work
And if it is not compiled with GeoIP support, can anyone explain why?
well, I think geoip library it not supported in rhel and this requires geoip library..
-- Eero
Eero Volotinen wrote on Sun, 10 Apr 2011 17:41:20 +0300:
well, I think geoip library it not supported in rhel and this requires geoip library..
yeah, geoip is an rpmforge package. Marko, you can easily compile it yourself, it's a set of only two binaries. No big deal deploying it non-rpm. And while you are at that and deducing from your name that you may want localized support: have a look at that as well if you compile. Webalizer supports only one language per binary, you have to compile it in.
Kai
On Sunday 10 April 2011 17:31:15 Kai Schaetzl wrote:
Eero Volotinen wrote on Sun, 10 Apr 2011 17:41:20 +0300:
well, I think geoip library it not supported in rhel and this requires geoip library..
yeah, geoip is an rpmforge package. Marko, you can easily compile it yourself, it's a set of only two binaries. No big deal deploying it non-rpm. And while you are at that and deducing from your name that you may want localized support: have a look at that as well if you compile. Webalizer supports only one language per binary, you have to compile it in.
Ok, compiled webalizer from source, works like a charm! :-) Thanks for help, folks!
Best, :-) Marko
On Sun, Apr 10, 2011 at 12:12 PM, Marko Vojinovic vvmarko@gmail.com wrote:
I have a small problem with webalizer. I use it to analyze logs of a small web server hosting a single site, and the only thing I am interested in from webalizer is the piechart diagram it produces about the geographic distribution of people visiting the site.
However, the piechart it produces gives me a very crude information, with 50% or so of visitors belonging to "unresolved", some to .net, some to .com and some country-specific. For an example, you can take a look at
http://sith.ipb.ac.rs/webal/usage_201103.html#TOPCTRYS
I would like some more fine-grained diagram, at least in the "unresolved" part. Am I missing something, or is this really as good as it gets?
I have the GeoIP and GeoIP-data packages installed, but they don't seem to do anything. I looked up the /etc/webalizer.conf file, but there seems to be no relevant settings to tweak. I've even read the webalizer man page ;-) , but failed to find anything related. Using google produced (among other things) this how-to:
http://www.lifelinux.com/how-to-install-webalizer-on-centos/
but that is for CentOS 5.4, it is written by an unknown source and suggests I should recompile webalizer and GeoIP from source, which is not the "proper" way to do it, I guess.
This is all on a freshly updated CentOS 5.6. :-) I'd appreciate any pointers.
TIA, :-) Marko
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
You should use "awffull" from RPMforge. It's supposed to be compatible with webalizer and it uses geoip.