Web Hosting Talk







View Full Version : Bizarre stats from Webalizer


BooBoo
05-01-2002, 03:47 PM
We are using Webalizer 2.01-6.3 and we have noticed some very strange statistics.

We have noticed that for a particular website for the month of April, it shows a pattern of spikes or no hits for five days. For example, the site will show hits of 5497 the 1st, 100607 on the second, 7165 on the 3rd, 93870 on the 4th, 7497 on the 5th, 61230 on the sixth, 3358 on the 7th, 0 on the 8th, 9th, and 10th, and then the pattern repeats itself in the we will have what we think is a valid number of hits (should be over 75000 daily) and then the following day will have a very low number.

Is this a known bug or is there something else going on? We really need this to work properly.

namehog
05-02-2002, 09:00 AM
hi,

we are getting this probelm with one of our RaQ's. I dont know why it is either but it is driving me mad. It has a fixed pattern to it too.

Gadgy
05-02-2002, 09:10 AM
If you realy need to know your hits whilst your sorting the problem out, and you have or can have ssi enabled I would suggest using something like http://www.xav.com/scripts/axs/ then you can have your stats reflect the true hits then tackle the problem. Takes 2mins to install, your not going to miss your stats for the time your webalizer problems getting resolved, and you can check the webalizer. A little bit of a time penalty with the ssi so if you do use it i wouldnt put it on too many pages.

skylab
05-02-2002, 10:52 AM
does anyone know of any alternative stats programs to webalizer?


since stupid the stupid OS2 update, my webalizer no longer works (neight PKG from pkgmaster nor the PKG from the unofficial cobalt page).

Adriaan
05-15-2002, 03:40 AM
I have the same problem too. My clients really need these statics! Someone got a solution for this?

Adriaan

dutchie
05-15-2002, 10:20 AM
I have Webalizer on 4 servers, half the time its broke on at least one of them .:angry:

I don't know if its fair to blame Webalizer though, logrotation and the cobalt updates are part of the problem and won't go away with a different package.

BooBoo
05-15-2002, 07:02 PM
I may have a fix, but I will not know until Saturday or Sunday. If it works, then I will post the correction.

Gadgy
05-15-2002, 07:23 PM
http://www.linux.org/apps/all/Administration/Log_Analyzers.html

I think you guys will enjoy this page.

:D

BooBoo
05-17-2002, 11:03 AM
Try this at your own risk..... :D

I've assumed that webalizer is started from /etc/cron.daily/webalizer.pl so you may need to alter the location if you are launching it from a different location.

SSH and su to root

pico /etc/logrotate.d/apache
remark the three script lines that call split_logs. It should read something like:


# prerotate
# /usr/local/sbin/split_logs web < /var/log/httpd/access
# endscript
control-x and save

We need to move the cron jobs out of the way for now:


mkdir /etc/cron.daily.old
mv /etc/cron.daily/logrotate /etc/cron.daily.old/logrotate
mv /etc/cron.daily/webalizer.pl /etc/cron.daily.old/webalizer.pl
Now to add the cron jobs ad different times:


pico /etc/crontab
I've opted to start split_logs at 12:30am, webalizer.pl at 3:30am and to rotate the logs at 5:30am. This should allow enough time to complete the previous job on full RaQs with large sites.

Add the section:

# Webalizer and Log Rotate
30 0 * * * root /usr/local/sbin/split_logs web < /var/log/httpd/access
30 3 * * * root /etc/cron.daily.old/webalizer.pl
30 5 * * * root /usr/sbin/logrotate /etc/logrotate.conf

Now, you will need to restart cron:
/etc/rc.d/init.d/crond restart

You may need to wait a few days before you see a result. On the other hand, it may not take that long as I am seeing normal stats now.

Standard disclaimer: If it doesn't work, or completely erases your server, don't blame me!

If anyone can offer improvements, I'd love to hear them.
Thanks to Richard on the Sun Forum for this fix...

Gadgy
05-18-2002, 12:58 AM
I forgot about this :

http://awstats.sourceforge.net/

Used it before and it is good.

Heres a link to the online demo :

http://awstats.sourceforge.net/cgi-bin/awstats.pl