Omair Haroon
02-09-2002, 11:20 AM
Hello Guys,
I having troubles with Webalizer. Logs don't seems to be rotating. Though access_logs seem to be rotating, but none of the site logs seem to be rotating.
Please don't ask me to search the old threads because that is what I have been doing since the last week but could'nt find a solution.
Thanks in advance!
Salam,
-Omair
Omair Haroon
02-11-2002, 12:23 PM
Anyone? 10000+ members and no one got a solution for this? I can't believe that :(
Salam,
-Omair
Omair Haroon
02-11-2002, 05:34 PM
Ok.. I have a clue now. Somebody not from WHT told me to edit /etc/logrotate.d/apache so that webalizer runs before the split_logs runs. This way stats would be generated without any problems.
Any idea how I would do it?
Salam,
-Omair
Pingu
02-11-2002, 05:48 PM
I was just doing some stuff in the apache file and this is what it says for the acces file:
/var/log/httpd/access {
prerotate
/usr/local/sbin/split_logs web < /var/log/httpd/access
endscript
missingok
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
/usr/sbin/webalizer.pl
endscript
daily
}
If running webalizer before split logs is the solution, then move the webalizer line before the split logs line. Simple as that I guess. Dunno if that's the solution though
ASPCode.net
02-11-2002, 05:49 PM
When you say it I remembered a thing I did and now I came up with this
http://www.webhostingtalk.com/showthread.php?s=&threadid=20412&highlight=logrotate+rename
Hopefully this will solve it for you, feeling sorry for you man...
EDIT: Pingu beat me to it, and also he is probably right and I am wrong as well :)
Pingu
02-11-2002, 05:55 PM
YAY, I finally beat someone, hehe
But serious, I remember some stuff about logfiles growing to big for their own good and the solution was to change this setting in /etc/webalizer.conf:
Incremental no
to:
Incremental yes
You might want to do that at the beginning of the month though, else you lose all the data gathered so far for this month
I should read better :rolleyes: Now I'm saying the same thing.
Guess I didn't beat anybody
Omair Haroon
02-11-2002, 06:09 PM
Well, as on the link that ASPCODE.net recommended, someone said:
2. Open /etc/webalizer.conf and find the line that deals with Incremental, turn it to ON and uncomment it
So instead of yes, I wrote ON. I guess that won't work. Editing the file again to turn it to yes.
Thanks for your concern and help PINGU and ASPCODE.Net. Also thanks for understanding my position ASPCODE.Net.
I would let you guys know if it would work!
Salam,
-Omair
Pingu
02-11-2002, 06:18 PM
I know the "yes" works for sure, as that's what I have in my .conf, and I haven't lost stats since I have it there.
That's better then exotic changes in cron files and sorts :)