Re: Multiple options blocks
"Laszlo Varady (lvarady)" <[email protected]>
| Newsgroups | gmane.comp.syslog-ng |
|---|---|
| Message-ID | <SJ0PR19MB534918032B4E3042A7D585F1F7E39@SJ0PR19MB5349.namprd19.prod.outlook.com> |
Hi,
The options{} block is for global configuration options only. Specifying multiple global options in separate files does not have file-local effects, all of those options will be merged and used as one global.
Global options have their local counterparts, they can be specified for each syslog-ng object (source, destination, rewrite, filter, parser, etc.).
My understanding is that you want to avoid repeating the same options for a group of syslog-ng objects. This is currently not supported out-of-the-box, but you can write customizable SCL blocks to achieve similar results.
An example of a SCL source that has a lot of parameters with specific defaults:
https://github.com/syslog-ng/syslog-ng/blob/master/scl/default-network-drivers/plugin.conf
--
László Várady
________________________________
From: syslog-ng <[email protected]> on behalf of Faine, Mark R. (MSFC-IS40)[NICS] <[email protected]>
Sent: Friday, April 1, 2022 17:37
To: Syslog-ng users' and developers' mailing list <[email protected]>
Subject: [syslog-ng] Multiple options blocks
CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
Can I have an options block in syslog-ng.conf that is for default configuration such as for /var/log and another options block in an include file that is specific to those destinations?
______________________________________________________________________________
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