From owner-freebsd-current@FreeBSD.ORG Sat Apr 24 02:57:21 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 19EBA1065676 for ; Sat, 24 Apr 2010 02:57:21 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp8.server.rpi.edu (smtp8.server.rpi.edu [128.113.2.228]) by mx1.freebsd.org (Postfix) with ESMTP id D25598FC16 for ; Sat, 24 Apr 2010 02:57:20 +0000 (UTC) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp8.server.rpi.edu (8.13.1/8.13.1) with ESMTP id o3O2vH4g002393; Fri, 23 Apr 2010 22:57:18 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <4BCFF81A.6050006@lissyara.su> <4BCFFBC1.2080703@lissyara.su> Date: Fri, 23 Apr 2010 22:57:16 -0400 To: krad , Alex Keda From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.10 () [Hold at 20.00] COMBINED_FROM X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.228 Cc: freebsd-current@FreeBSD.org 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 02:57:21 -0000 At 10:15 AM +0100 4/22/10, krad wrote: >On 22 April 2010 08:33, Alex Keda wrote: > >> 22.04.2010 11:29, Gordon Tetlow ?????: >> >>> On Thu, Apr 22, 2010 at 12:17 AM, Alex Keda >> admin@lissyara.su>> wrote: >>> >>> It's need feature. I test patch - it work for me (CURRENT, amd64) >>> Can I use some as: >>> /path/to/dir/*.conf >>> ? >>> and can I create recursive include? >>> >>> >>> Yes, wildcards and recursive includes are supported. >>> >> great job! > > Thanks! I also think this is a great feature to add. Just to be clear: This allows a config file to include some other file, and that other file can also include more files with additional newsyslog entries. In 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. >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 files >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 = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA