|
|||||||||
![]() |
|||||||||
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: CRONOLOG: symlink to previous log
Hello, We like to use the symlink to the previous logfile for webalizer. The logfile to be "webalized" is hardcoded in the webalizer.conf file. I would have been nice if we simply could use the prev. symlink. Of course, if it doesn't work out, I can write a little script that makes the symlink using the date command. (I should have mentioned the purpose of the prev. symlink in the first mail, sorry ...) Thanks for your answer. Regards, Filip On Wed, 2002-10-16 at 17:17, Emmerich, Martin wrote: Hello, We run our setup with daily logrotation by simply using CustomLog "|/usr/local/sbin/cronolog \ --symlink=/var/log/httpd/access_log \ /usr/local/httpd/logs/%Y/%m/%d/access_log" common i.e. no symlink to the previous logfile needed Best regards, .............................. Martin Emmerich Leitung IT Oestreicher + Wagner Medientechnik GmbH Frankenthaler Straße 20 D-81539 München Fon +49 (0)89-68961 171 Fax +49 (0)89-68961 271 -----Original Message----- From: Filip Sergeys tc [mailto:fsergeys-tc@xxxxxxxxxxxxxxxx] Sent: Wednesday, October 16, 2002 12:19 PM To: cronolog-users@xxxxxxxxxxxxxxxxxx Subject: CRONOLOG: symlink to previous log Hi, I'm trying out cronolog, but can't seem to get symlink to the previous logfile to work. It keeps pointing to the current logfile. According to the manual, you need to define the symlink to the current logfile too, as that one is used to make the symlink to the previous log (if I understood well) Here is a snippet from our apache config file. We opted for the /YEAR/month/day directory structure. As this makes it easy to do monthly zips of the old logfiles. The logfile should be rotated every day (this works OK, as is the symlink to the current logfile). Is this line correct? If it is, any hints on why the prev. symlink points to the current logfile? CustomLog "| /usr/local/sbin/cronolog -p 1days \ -S /usr/local/apache/logs/eccent_curr_log \ -P /usr/local/apache/logs/eccent_prev_log \ /usr/local/apache/logs/%Y/%m/%d/eccent_access_log" common Thanks in advance, Sincerely, Filip
|