[thelist] help with logrotate...please

Howard The Duck h.t.d at gmx.de
Thu Apr 25 02:24:01 CDT 2002


For Apache 1.3 i use cronolog - should be easy to find out where to get
it, i think it's even mentioned in the apache documentation...

here's an example httpd.conf directive to use it

CustomLog "|/usr/local/sbin/cronolog \
--symlink=/var/log/httpd/maxxx_log \
/var/log/httpd/%Y/maxxx_log.%W" common

the backslashes mean that this should be inserted in one line. This
example creates a directory for every year and creates a logfile with
the number of the week of the year as extension like:
/var/log/httpd/2002/maxxx_log.15
an a symlink is there for webalizer to get new infos - BTW if you rotate
logs you need to change some settings with webalizer to always get all
information. You can use any C-style date formatting options (daily,
hourly, full date in filename,....) for cronolog, but for my pages it's
enough to rotate weekly.
hth
Yours
 HTD



More information about the thelist mailing list