[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Still on Webalizer gaps, please review this solution
- Subject: [cobalt-users] Still on Webalizer gaps, please review this solution
- From: Mikael Siirilä <mikael.siirila@xxxxxxxxx>
- Date: Mon Apr 1 01:55:09 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Having read the discussions on Webalizer problems on this list, I have tried
to fix the gaps in Webalizer data by calling statistics analysis after
split_logs but before site-specific logs are rotated.
This I did by removing webalizer.pl from the cron.daily directory and
calling it from /logrotate.d/apache right after split_logs:
- - -
/var/log/httpd/access {
prerotate
/usr/local/sbin/split_logs web < /var/log/httpd/access
# Stats generated here:
/etc/webalizer.pl
endscript
missingok
postrotate
/usr/bin/killall -HUP httpd 2> /dev/null || true
endscript
daily
}
- - -
Does this sound like a reasonable and working solution? Is the
/logrotate.d/apache file replaced by the GUI at any point? Should Webalizer
settings be adjusted with this setup?
Changing file names (suggested earlier on the list) don't seem to work,
cause statistics analysis has to done after log splitting (populating
web.logs) but before web.logs are rotated.
Thanks for all help!
--
Mikael Siirilä
mikael.siirila@xxxxxxxxx