From owner-freebsd-questions Sat Feb 23 8:15:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ulixes.esc.ac.at (ulixes.esc.ac.at [193.170.216.34]) by hub.freebsd.org (Postfix) with ESMTP id BCCFD37B405 for ; Sat, 23 Feb 2002 08:15:05 -0800 (PST) Received: from ulixes.esc.ac.at (localhost.esc.ac.at [127.0.0.1]) by ulixes.esc.ac.at (8.12.2/8.12.2) with ESMTP id g1NGF2Hr013369; Sat, 23 Feb 2002 17:15:02 +0100 (CET) (envelope-from flo@ulixes.esc.ac.at) Received: (from flo@localhost) by ulixes.esc.ac.at (8.12.2/8.12.2/Submit) id g1NGF29F013368; Sat, 23 Feb 2002 17:15:02 +0100 (CET) (envelope-from flo) Date: Sat, 23 Feb 2002 17:15:02 +0100 From: Florian Nigsch To: alexus , freebsd-questions@freebsd.org Subject: Re: logs (rotation) Message-ID: <20020223171502.A13010@nigsch.com> References: <003701c1bc7b$0e9fd680$faa0b542@noc> <20020223161238.A12878@nigsch.com> <001801c1bc80$0c7bf2d0$faa0b542@noc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <001801c1bc80$0c7bf2d0$faa0b542@noc>; from ml@db.nexgen.com on Sat, Feb 23, 2002 at 10:37:48AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 23, 2002 at 10:37:48AM -0500, alexus wrote: > i did that and it works fine, however > > when i run rotatelogs from apache's dir i get this instructions > > %/usr/local/apache/bin/rotatelogs > Usage: /usr/local/apache/bin/rotatelogs > [offset minutes from UTC] > > Add this: > > TransferLog "|/usr/local/apache/bin/rotatelogs /some/where 86400" > > to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the > system time at which the log nominally starts (N.B. this time will always be > a > multiple of the rotation time, so you can synchronize cron scripts with it). > At the end of each rotation time a new log is started. > % > > so they suggest to use TransferLog instead of CustomLog > ---end quoted text--- Hey, i didn't even know that there was a binary 'rotatelogs' included with apache... ;-) Therefore I don't know it's behaviour and such. But I could imagine that instead of TransferLog-ing to the pipe you could CustomLog into the pipe, like so CustomLog "|/usr/../rotatelogs " I am in no case sure if that might work, but I would try it without hesitation. I think it does work. Why not? ;) flo -- --- Florian Nigsch http://flo.nigsch.com/ PGP key: http://flo.nigsch.com/fnigsch.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message