Re: newsyslog patch implementing file includes

From: Brandon Gooch <jamesbrandongooch_at_gmail.com>
Date: Sat, 24 Apr 2010 05:22:27 +0000
On Sat, Apr 24, 2010 at 2:57 AM, Garance A Drosehn <gad_at_freebsd.org> wrote:
> At 10:15 AM +0100 4/22/10, krad wrote:
>>
>> On 22 April 2010 08:33, Alex Keda <admin_at_lissyara.su> wrote:
>>
>>>  22.04.2010 11:29, Gordon Tetlow ?????:
>>>
>>>>  On Thu, Apr 22, 2010 at 12:17 AM, Alex Keda <admin_at_lissyara.su <mailto:
>>>>  admin_at_lissyara.su>> wrote:
>>>>
>>>>    It's need feature. I test patch - it work for me (CURRENT, amd64)
>>>>    Can I use some as:
>>>>    <include> /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.

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 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_at_rpi.edu
> Senior Systems Programmer               or   gad_at_FreeBSD.org
> Rensselaer Polytechnic Institute;             Troy, NY;  USA

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
Received on Sat Apr 24 2010 - 03:22:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:03 UTC