From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 12 12:50:01 2007 Return-Path: Delivered-To: FreeBSD-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4057816A41A for ; Sun, 12 Aug 2007 12:50:01 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 8FADF13C49D for ; Sun, 12 Aug 2007 12:50:00 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1386985fka for ; Sun, 12 Aug 2007 05:49:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=L3Xdx1xpa6lk+TQlQdCmjO2Ln5yNKkkLbAKUh4wibkvc01qG0mRICFtP24jCSqKCgXwXifrGNWJeQaLkkU705r39VPwdsA2jTdWlpyrqpRgJdUtVOsLohCKj2ONoYDqZhxmMsErCXvslKR7OPvytUp9euMvpo8v2qxiT3+SqDrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HWf9tf4Dxc3vp8CFhwSJetU3O5kOmEv7h5d7INzHJDo6KYdpNC4o9RGjV0j0E0DrrBAH8HeKncNTo4QqZqttBn3yh7jjoNEAkRs9mFjZzJ8et/0FXe/qrWKVzAfxpVctdgrGTOnaEQ8Ye+AnfpvWDas37H/QklAL6jlnt+1G2Wc= Received: by 10.86.60.7 with SMTP id i7mr3893599fga.1186921468019; Sun, 12 Aug 2007 05:24:28 -0700 (PDT) Received: from roadrunner.spoerlein.net ( [85.180.189.180]) by mx.google.com with ESMTPS id 31sm9334009fkt.2007.08.12.05.24.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Aug 2007 05:24:27 -0700 (PDT) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.1/8.14.1) with ESMTP id l7CCOLLS002839; Sun, 12 Aug 2007 14:24:21 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.spoerlein.net (8.14.1/8.14.1/Submit) id l7CCOLbi002838; Sun, 12 Aug 2007 14:24:21 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sun, 12 Aug 2007 14:24:20 +0200 From: Ulrich Spoerlein To: David Wolfskill , Artis Caune , FreeBSD-hackers@freebsd.org Message-ID: <20070812122420.GC1438@roadrunner.spoerlein.net> Mail-Followup-To: David Wolfskill , Artis Caune , FreeBSD-hackers@freebsd.org References: <46BC49DB.8060509@latnet.lv> <20070810161318.GX77008@bunrab.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070810161318.GX77008@bunrab.catwhisker.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Re: [PATCH] newsyslog - don't compress first log file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2007 12:50:01 -0000 On Fri, 10.08.2007 at 09:13:18 -0700, David Wolfskill wrote: > On Fri, Aug 10, 2007 at 02:19:55PM +0300, Artis Caune wrote: > > How about aditional flag ("X") to newsyslog, which don't compress first > > log file? > >... > > Interesting idea, but it still falls short of something we recently > needed to do at work: > > We have a requirement to retain some number of logfiles, but only > compress those older than the Nth generation. > > Thus, we might retain 90 "rotated" generations of the log file, of which > the oldest 50 are compressed, while the newest 40 are not. Sorry, to be so blunt, but I think this .N suffix is a stupid approach for archival purposes. You never know which time span is included in the file foo.17.gz. I'd rather see an extension for newsyslog which would rotate foo to foo.2007-08-12.gz, iff rotation is done every day at midnight. That way, you get a 'stable' name, which makes it easier to find the logfile for 1999-12-31 or 2000-01-01 some years from now. Right now, I have to use syslog-ng for that purpose. Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.