Date: Fri, 10 Aug 2007 09:13:18 -0700 From: David Wolfskill <david@catwhisker.org> To: Artis Caune <Artis.Caune@latnet.lv> Cc: FreeBSD-hackers@freebsd.org Subject: Re: [PATCH] newsyslog - don't compress first log file Message-ID: <20070810161318.GX77008@bunrab.catwhisker.org> In-Reply-To: <46BC49DB.8060509@latnet.lv> References: <46BC49DB.8060509@latnet.lv>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070810161318.GX77008>