Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2010 05:22:27 +0000
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        Garance A Drosehn <gad@freebsd.org>
Cc:        Alex Keda <admin@lissyara.su>, freebsd-current@freebsd.org, krad <kraduk@googlemail.com>
Subject:   Re: newsyslog patch implementing file includes
Message-ID:  <k2m179b97fb1004232222k8ecce8d9t543d03e39d992cde@mail.gmail.com>
In-Reply-To: <p06240810c7f80a357be5@128.113.24.47>
References:  <y2i4e571dd71004212055v17af3f28v172b8f8204b0b7e8@mail.gmail.com> <4BCFF81A.6050006@lissyara.su> <s2q4e571dd71004220029qb9a04325h1064c4ab458b1526@mail.gmail.com> <4BCFFBC1.2080703@lissyara.su> <n2zd36406631004220215o20f12704nc75637ed60773817@mail.gmail.com> <p06240810c7f80a357be5@128.113.24.47>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 24, 2010 at 2:57 AM, Garance A Drosehn <gad@freebsd.org> wrote:
> At 10:15 AM +0100 4/22/10, krad wrote:
>>
>> On 22 April 2010 08:33, Alex Keda <admin@lissyara.su> wrote:
>>
>>> =A022.04.2010 11:29, Gordon Tetlow ?????:
>>>
>>>> =A0On Thu, Apr 22, 2010 at 12:17 AM, Alex Keda <admin@lissyara.su <mai=
lto:
>>>> =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<include> /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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?k2m179b97fb1004232222k8ecce8d9t543d03e39d992cde>