[syslog-ng] create_dir and "dynamic" destinations.
Renato Bezerra
renatobamorim at gmail.com
Thu Aug 21 21:50:54 CEST 2014
I use this same config and work very well.
Em 21/08/2014 16:44, "Balazs Scheidler" <bazsi77 at gmail.com> escreveu:
> Hmm it should create the entire path.
> On Aug 20, 2014 5:16 PM, "Scot Needy" <scotrn at gmail.com> wrote:
>
>>
>>
>> Yes, I have the create-dies() option enabled but that does not seem to
>> work for upper level directories.
>>
>> Example:
>>
>> Only works if the 192_168_9_0 directory is pre-created.
>> destination d_192_168_9_0 {
>> file(/opt/syslog-ng/logs/192_168_9_0/$YEAR/$MONTH/$DAY/$HOST.log);};
>>
>>
>>
>> On Aug 20, 2014, at 7:24 AM, Fabien Wernli <wernli at in2p3.fr> wrote:
>>
>> > Hi Scot,
>> >
>> > You have the `create-dirs()` option for that:
>> >
>> >
>> http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html-single/index.html#idp4490112
>> >
>> >
>> ______________________________________________________________________________
>> > Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> > Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> > FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>> >
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140821/6eb71a0a/attachment.htm
More information about the syslog-ng
mailing list