From owner-freebsd-current@FreeBSD.ORG Sat Apr 24 05:22:29 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EC7D1065670 for ; Sat, 24 Apr 2010 05:22:29 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id F3FD28FC17 for ; Sat, 24 Apr 2010 05:22:28 +0000 (UTC) Received: by gwj18 with SMTP id 18so2848882gwj.13 for ; Fri, 23 Apr 2010 22:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0t8GNxNI8wZmewLPucXsLFQ89KEAM6ZxlesgHzvtRCU=; b=xMPZldYWz0025Rkc1W9eGU07IhM1hzb6LAY2XVJgboi18hbJyrbK83qQOmDXO5+BDL Luk+koRyBR8bUi8dRfv1algLgYXG0hxQrqXxXXFbrPiCKP3HT2a9NVmdKvtSEoQZAnIP JqtWxX2mY/B9LTkt5A8zcBYI0/uPT/YcRBvpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vwcRmZpb4EJ5EvFbJvKAocBPPtlZkg3c+k71EBDx01gdUTat+kE17XrQvSOP8ipaMd nTTElvy6avLVmeKXoibnf5KHPaCBrEs72e2eXX4cVkeneNLIbCbGCq96wDvf7eP4wjwv jjHXUpWJiWzOnSF0i+J9Um+urH01b6JmLoljM= MIME-Version: 1.0 Received: by 10.101.131.35 with SMTP id i35mr1331398ann.39.1272086547980; Fri, 23 Apr 2010 22:22:27 -0700 (PDT) Received: by 10.231.113.36 with HTTP; Fri, 23 Apr 2010 22:22:27 -0700 (PDT) In-Reply-To: References: <4BCFF81A.6050006@lissyara.su> <4BCFFBC1.2080703@lissyara.su> Date: Sat, 24 Apr 2010 05:22:27 +0000 Message-ID: From: Brandon Gooch To: Garance A Drosehn Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Alex Keda , freebsd-current@freebsd.org, krad Subject: Re: newsyslog patch implementing file includes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2010 05:22:29 -0000 On Sat, Apr 24, 2010 at 2:57 AM, Garance A Drosehn wrote: > At 10:15 AM +0100 4/22/10, krad wrote: >> >> On 22 April 2010 08:33, Alex Keda wrote: >> >>> =A022.04.2010 11:29, Gordon Tetlow ?????: >>> >>>> =A0On Thu, Apr 22, 2010 at 12:17 AM, Alex Keda >>> =A0admin@lissyara.su>> wrote: >>>> >>>> =A0 =A0It's need feature. I test patch - it work for me (CURRENT, amd6= 4) >>>> =A0 =A0Can I use some as: >>>> =A0 =A0 /path/to/dir/*.conf >>>> =A0 =A0? >>>> =A0 =A0and can I create recursive include? >>>> >>>> >>>> =A0Yes, wildcards and recursive includes are supported. >>>> >>> =A0great job! >> >> =A0> Thanks! > > I also think this is a great feature to add. > > Just to be clear: =A0This allows a config file to include some other > file, and that other file can also include more files with additional > newsyslog entries. =A0In that sense it allows recursive includes. > > Note that it will detect when such recursion causes one file to end > up indirectly including itself, and will reject *that* situation. > So you shouldn't be able to get into an infinite loop of included > files. This sounds cool; I've ever ran into a situation where I needed this -- yet= . Although I'm sure when it's in the tree and available, I'll not be able to live without it :) >> i would be real nice is newsyslog also supported a date based file >> renaming >> shceme rather than the cyclic 0,1,2,3, much like the datext option in >> logrotate. eg >> >> messages >> messages.20100422 >> messages.20100421 >> messages.20100420 >> ... >> >> The cyclic renaming is a pain for incremental backups as all the log fil= es >> are backed up every time as their contents changes compared to their >> filename > > I hope to do this after Gordon commits the new feature that he's > implemented. I know I've said that before, but I do have some > vacation time coming up soon and expect to do it then. > > -- > Garance Alistair Drosehn =A0 =A0 =3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 drosehn@= rpi.edu > Senior Systems Programmer =A0 =A0 =A0 =A0 =A0 =A0 =A0 or =A0 gad@FreeBSD.= org > Rensselaer Polytechnic Institute; =A0 =A0 =A0 =A0 =A0 =A0 Troy, NY; =A0US= A This would indeed be a very welcome feature. I've been trying to devise a method (and the logic) to do something similar recently... I wonder, what might the time-frame be for adding the above feature? A "guess-timate" would be OK :) -Brandon