Package: webalizer Version: 2.23.05-1 Severity: normal I run webalizer on my other_vhosts_access.log. Everything works fine, except for country analysis. I believe my GeoIP setup is correct, as if I simply change the log to be analyzed to access.log, then it works fine, and I cannot see anything in the log files which should stop it working. (In any case, I'm using the default apache2 logging configuration.)
The one thing I do notice is that whereas a typical entry from the access.log file looks like this: 127.0.0.1 - - [15/Jul/2012:06:51:08 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" a typical line from other_vhosts_access.log looks like: rrt.sc3d.org:80 95.108.244.253 - - [15/Jul/2012:07:02:33 +0100] "GET /robots.txt HTTP/1.1" 404 800 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" i.e. it seems to contain an extra field at the start, giving the virtual host. Could this be a problem? It obviously isn't preventing the rest of the logs from being analyzed... -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise') Architecture: i386 (i686) Kernel: Linux 3.2.0-26-generic (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages webalizer depends on: ii debconf [debconf-2.0] 1.5.42ubuntu1 ii libc6 2.15-0ubuntu10 ii libdb5.1 5.1.25-11build1 ii libgd2-xpm 2.0.36~rc1~dfsg-6ubuntu2 ii libgeoip1 1.4.8+dfsg-2 ii zlib1g 1:1.2.3.4.dfsg-3ubuntu4 webalizer recommends no packages. Versions of packages webalizer suggests: ii apache2-mpm-prefork [httpd] 2.2.22-1ubuntu1 -- Configuration Files: /etc/cron.daily/webalizer changed: WEBALIZER=/usr/bin/webalizer WEBALIZER_CONFDIR=/etc/webalizer [ -x ${WEBALIZER} ] || exit 0; [ -d ${WEBALIZER_CONFDIR} ] || exit 0; for i in ${WEBALIZER_CONFDIR}/*.conf; do # exists ? [ -f $i ] || continue; # run agains a rotated or normal logfile LOGFILE=`awk '$1 ~ /^LogFile$/ {print $2}' $i`; # empty ? [ -s "${LOGFILE}" ] || continue; # readable ? [ -r "${LOGFILE}" ] || continue; # there was a output ? OUTDIR=`awk '$1 ~ /^OutputDir$/ {print $2}' $i`; # exists something ? [ "${OUTDIR}" != "" ] || continue; # its a directory ? [ -d ${OUTDIR} ] || continue; # its writable ? [ -w ${OUTDIR} ] || continue; # Run Really quietly, exit with status code if !0 ${WEBALIZER} -c ${i} -Q || continue; RET=$?; # Non rotated log file NLOGFILE=`awk '$1 ~ /^LogFile$/ {gsub(/\.[0-9]+(\.gz)?/,""); print $2}' $i`; # check current log, if last log is a rotated logfile if [ "${LOGFILE}" != "${NLOGFILE}" ]; then # empty ? [ -s "${NLOGFILE}" ] || continue; # readable ? [ -r "${NLOGFILE}" ] || continue; ${WEBALIZER} -c ${i} -Q ${NLOGFILE}; RET=$?; fi; done; exit $RET; -- debconf information: webalizer/logfile: /var/log/apache2/other_vhosts_access.log.1 webalizer/doc_title: Usage statistics for webalizer/upgrading: webalizer/dnscache: false webalizer/directory: /var/www/webalizer webalizer/upgrade2011030: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org