Web Hosting Talk







View Full Version : log rotating / webalizer


clocker1996
12-23-2001, 09:29 AM
What if i have a cronjob where every day it cds into /home/domain/public_html/stat and runs the webalizer command

rm -rf *
webalizer -n site.com /home/domain/logs/access_log

and prints out the usage, thats fine. BUt what im saying is what if the log file gets to gigs in size, if i rotate teh logs, webalizer wont catch it anymore, will it? i mean webalizer will print out the NEW stats after i rotated the logs.

So if it is 3 gigs in access_log and i roatet that.

Wont webalizer start all over again, and not include the 3 gigs from before in its report

Or will it include the previous 3 gigs. I just want to be able to keep track of whats going on.

Sorry its late, i hope im making sense

clocker1996
12-29-2001, 07:08 AM
So nobody knows?

ho247
12-29-2001, 10:37 AM
I don't think it does support logs that are rotated, as we're using webalizer. Before we started using log rotation (because we didn't think to), webalizer worked fine and showed all stats, when we setup log rotation (because the logs where getting SOO big that it nearly crashed the server), webalizer just displayed the stats that are in the latest log.

I'm thinking... if you run webalizer enough times, closer together in time periods then it should capture all the data in each file before a new log is started, woudl that work?

Alan

Planet Z
12-29-2001, 04:49 PM
Webalizer does support rotating logs. Open up the conf file and search for the line that says "Incremental". Enable it. Then it will keep the data from previous logs for that month and it won't reset everytime you wipe out your logs.

jic
01-02-2002, 06:36 PM
My company has developed software that we use on all of our servers that backs up each days files into a .tar.gz file to save space. We have found this works out great. We can install it for you for a small fee if you like. Just contact me via email.

ckpeter
01-02-2002, 07:16 PM
Originally posted by jic
My company has developed software that we use on all of our servers that backs up each days files into a .tar.gz file to save space. We have found this works out great. We can install it for you for a small fee if you like. Just contact me via email.

I don't think you are suppose to promote yourself in non-ad forum...

Peter

Mango
01-02-2002, 11:58 PM
My company has developed software that we use on all of our servers that backs up each days files into a .tar.gz file to save space. We have found this works out great. We can install it for you for a small fee if you like. Just contact me via email.

Actually a 5-lines shell script or even just /etc/logrotate could do this...