From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 10 16:47:33 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 BE62D16A41B for ; Fri, 10 Aug 2007 16:47:33 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 91C3B13C45D for ; Fri, 10 Aug 2007 16:47:33 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id l7AGDJiF038481; Fri, 10 Aug 2007 09:13:19 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id l7AGDIcu038480; Fri, 10 Aug 2007 09:13:18 -0700 (PDT) (envelope-from david) Date: Fri, 10 Aug 2007 09:13:18 -0700 From: David Wolfskill To: Artis Caune Message-ID: <20070810161318.GX77008@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Artis Caune , FreeBSD-hackers@freebsd.org References: <46BC49DB.8060509@latnet.lv> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DTbNwtYx2n+Gggn7" Content-Disposition: inline In-Reply-To: <46BC49DB.8060509@latnet.lv> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD-hackers@freebsd.org 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: Fri, 10 Aug 2007 16:47:33 -0000 --DTbNwtYx2n+Gggn7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > 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. I didn't see a better way to do it, so I cobbled up a Perl script; I'd much rather be able to use newsyslog(8) for the job. Biggest problem I can see (with what I want to accomplish) is how to specify it in the config file. Peace, david --=20 David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --DTbNwtYx2n+Gggn7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAka8jpsACgkQmprOCmdXAD0uGQCffFfrCLRnnc6JjjQ6r3I+1lbj OeAAn0nwjeIRlq/mDbN8mBfsHlOhAd+Q =LcAD -----END PGP SIGNATURE----- --DTbNwtYx2n+Gggn7--