nEMESIS4
09-26-2001, 08:41 AM
I've noticed something Webalizer that has happened for most of our sites. Around the 25 of every month it seems to cut off all the hits before that date. So for the HITS by DAY section it will show the hits for everyday that month up until the 25th. Then it will just show 25, 26, 27, etc till the start of next month.
Any idea what could be causing that? Thanks in advanced.
mlovick
09-26-2001, 04:23 PM
Why dont you check and see when your log file rotates. Perhaps you need to re-start the web server to kick in the log file again.
nEMESIS4
09-26-2001, 04:35 PM
How would I check to see that?
nEMESIS4
09-28-2001, 08:11 AM
Anybody else have any ideas?
ASPCode.net
09-28-2001, 03:18 PM
I am not sure if this is it, but I have had well not similar, but what I suspect log related problems - every other day I get way to small figures - like 10 % of what it should be.
Today I have installed
http://cobalt-aid.sourceforge.net/files/Features/Intel/Webalizer-logging.pkg
which disables the analog stats - my idea is that the Cobalt default analog program runs and then rotates the log before Webalizer runs.
As I said, I installed it today, and will know in a couple of days .
Maybe this is a thing you could try as well???
Originally posted by ASPCode.net
I am not sure if this is it, but I have had well not similar, but what I suspect log related problems - every other day I get way to small figures - like 10 % of what it should be.
Today I have installed
http://cobalt-aid.sourceforge.net/files/Features/Intel/Webalizer-logging.pkg
which disables the analog stats - my idea is that the Cobalt default analog program runs and then rotates the log before Webalizer runs.
As I said, I installed it today, and will know in a couple of days .
Maybe this is a thing you could try as well???
Most (if not all) Webalizer packages out there are broken in that respect -- including the cobalt-aid one (it was last time I looked at it, can't say if they have changed it lately).
It's not the Cobalt logrotation system which is weird -- it's the webalizer packages that do it wrong.
Problem is, that the Cobalt logrotation system will _delete_ logs if they are larger than 10% of the site quota. This is a quite sane thing to do. So you must setup your log analyzers to analyze the logs _before_ they are deleted.
We did our own Webalizer package long time ago (1 year+), and it has worked as charm ever since.
ASPCode.net
09-29-2001, 09:50 AM
Thanks Jens ( another scandinavian :) ,
I have already tried to rename the webalizer script in cron.daily to awebalizer.pl to make it run before everyting else, however still doesn't work every other day.
Is it something else I need to do?
SI-Chris
09-29-2001, 02:40 PM
At your own risk, try this:
mv /etc/cron.daily/webalizer.pl /usr/local/bin/webalizer.pl
pico /etc/logrotate.d/apache
Then near the top, under the line that reads "/usr/bin/killall -HUP httpd 2> /dev/null || true" add the following line:
/usr/local/bin/webalizer.pl
So the first part of the file will look like this:/var/log/httpd/access {
prerotate
/usr/local/sbin/split_logs web < /var/log/httpd/access
endscript
missingok
postrotate
/usr/bin/killall -HUP httpd 2> /dev/null || true
/usr/local/bin/webalizer.pl
endscript
daily
}(FYI, I made the Webalizer line bold in the above code sample for emphasis, but it won't actually appear bold in your shell window :) ). Then Ctrl-X to exit and Y to save changes. This will permanently fix the problem.
netastic
10-01-2001, 09:52 AM
is there anyway to get webalizer to display information from the server logs for a month that it didn't start displaying until say the 25th? in otherwords if i have an incomplete month of statistics showing in webalizer is there some what to go back and complete them?
Originally posted by netastic
is there anyway to get webalizer to display information from the server logs for a month that it didn't start displaying until say the 25th? in otherwords if i have an incomplete month of statistics showing in webalizer is there some what to go back and complete them?
It's possible - but only if you have got the complete weblog files from that month.
microsol
01-21-2002, 03:35 PM
Originally posted by Intelligent Hosting
At your own risk, try this:
mv /etc/cron.daily/webalizer.pl /usr/local/bin/webalizer.pl
pico /etc/logrotate.d/apache
Then near the top, under the line that reads "/usr/bin/killall -HUP httpd 2> /dev/null || true" add the following line:
/usr/local/bin/webalizer.pl
So the first part of the file will look like this:/var/log/httpd/access {
prerotate
/usr/local/sbin/split_logs web < /var/log/httpd/access
endscript
missingok
postrotate
/usr/bin/killall -HUP httpd 2> /dev/null || true
/usr/local/bin/webalizer.pl
endscript
daily
}(FYI, I made the Webalizer line bold in the above code sample for emphasis, but it won't actually appear bold in your shell window :) ). Then Ctrl-X to exit and Y to save changes. This will permanently fix the problem.
Would this solution also solve the problem in the attached pic?
I know that this site has around 500-3000 hits per hour (from the daily stats, they're fine) but the hourly are not displayed correctly!