[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Webalizer & Logrotate, lets try it again...
- Subject: [cobalt-users] Webalizer & Logrotate, lets try it again...
- From: Debbie Doerrlamm <wkdwich@xxxxxxxxxxxx>
- Date: Tue Jul 18 18:39:58 2000
I have spent hours following the paths of how the logrotate happens. Since
the webalizer pkg from cobalt only analyzes the
/home/sites/sitex/logs/web.log then that was all I was concerned with.
/etc/cron.daily executes logrotate
logrotate calls logrotate.conf
logrotate.conf has a line that says:
include /etc/logrotate.d
in logrotate.d is several files, one for each site which calls to rotate
the web.log !!
OK.. so this is the only thing I need to adjust here.. the settings in each
sites logrotate.d/ file.
the webalizer docs state that it can do incremental processing..
webalizer.pl needs to be executed with a -p switch to make it process the
incremental logs.
It does not state if it will ungz the logs or not that I can find.. Does
anyone know that??
/etc/cron.daily also executes webalizer.pl
cron.daily is called from roots crontab like so:
02 4 * * * root run-parts /etc/cron.daily
So I think I need to remove webalizer.pl from the cron.daily directory,
place it elsewhere's.. then add a line to the cron to run it daily.. after
the logrotate or ideally before?? Or is there another solution I'm missing
here..
The comment line in webalizer.pl states it depends on the conf file being
in /etc, so that stays and no adjustments to the .pl is needed at all..
just change the cron to use the -p switch.. can anyone help me out on that
string please??
I never saw the "run-parts" in a cron before.. I assume it runs everything
in that directory?? That's what it means?
Thanks... learning new stuff every day.. frustrating but rewarding :)
Regards,
Debbie ^v^ ///\o/\\\ ^v^
webmaster@xxxxxxxxxxxxxx (AIM NailGdsss ICQ 354179)
WWWeb Services, Ronkonkoma, NY
877-669-7953 - voicemail/fax
BeautyTech / SalonMart
http://beautytech.com/ http://salonmart.com