From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 07:49:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E201106568F for ; Tue, 14 Oct 2008 07:49:06 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id DE8C58FC1F for ; Tue, 14 Oct 2008 07:49:05 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m9E7mnVC084385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Oct 2008 08:48:55 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m9E7mnVC084385 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1223970536; bh=n2hbitzydfaoDz SSYytveC8rghziOdUdsCzOYpJISY8=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type: Content-Transfer-Encoding:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<48F44EE1.1 0206@infracaninophile.co.uk>|Date:=20Tue,=2014=20Oct=202008=2008:48 :49=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User-Agent:=20Thunderbird=20 2.0.0.17=20(X11/20081002)|MIME-Version:=201.0|To:=20Walt=20Pawley=2 0|CC:=20Kelly=20Jones=20,=20=0D=0A=20freebsd-questions@freebsd.org|Subject:=20Re:=20newsys log=20naming=20scheme=20could=20be=20improved?|References:=20<26fac e530810110933o1403705o625586ac53b309fb@mail.gmail.com>=20|In-Reply-To:=20|X-Enigmail-Version:=200.95.6|Content-Type:=20text/plain=3 B=20charset=3DUTF-8=3B=20format=3Dflowed|Content-Transfer-Encoding: =207bit; b=z//5h02vrBncsGiva5HERHuwjyaiGc5Wgn+8GUiyyJDuxPeCPicTaePT 4qG65ga7/tFzpVN2MtiqzJODjvCiyTYVe00N5t9QG0nWXtiqOES+phVHuWNLyX1zjHA u1nFtwPvMvKcmC62jLkdNJrpUz8WzHfbjgtCD/EITw4Zy5rk= Message-ID: <48F44EE1.10206@infracaninophile.co.uk> Date: Tue, 14 Oct 2008 08:48:49 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20081002) MIME-Version: 1.0 To: Walt Pawley References: <26face530810110933o1403705o625586ac53b309fb@mail.gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [81.187.76.162]); Tue, 14 Oct 2008 08:48:56 +0100 (BST) X-Virus-Scanned: ClamAV 0.94/8419/Tue Oct 14 03:08:23 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Kelly Jones , freebsd-questions@freebsd.org Subject: Re: newsyslog naming scheme could be improved? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 07:49:06 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Walt Pawley wrote: | At 9:33 AM -0700 10/11/08, Kelly Jones wrote: |> newsyslog rotates logfiles so that messages.0.gz is yesterday's file, |> messages.1.gz is the day before's, etc. |> |> This is ugly. | | IMHO, this is worse than merely ugly. I gave up "rotating" log | files a long time ago when I kept running into problems that | needed extensive time periods worth of log data with which to | resolve issues. I use some modifications to the periodic | scripts to do the log data archiving with time related names. | | Of course, if you're generating megabytes of compressed log | data every day, this is likely impractical but it works well | for systems I normally use. I note that syslog.conf allows you to pipe log messages into some other application. Simply using cronolog (or rotatelogs from one of the Apache ports) would allow you to create date-stamped logfile names pretty easily. Eg. *.* |/usr/local/sbin/cronolog /var/log/all-%Y-%m-%d.log This doesn't provide control of file permissions or compression of old log files, but either of those are relatively simple to fix. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkj0TuEACgkQ3jDkPpsZ+VYhMQCfTMJFKWSGWLAOrbQgbZ3HFEWo DWgAoJDLjWy7kSwPxAzmUcXcZW1B1v0m =k4af -----END PGP SIGNATURE-----