Multiple options blocks
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?
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-drive... -- László Várady ________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Faine, Mark R. (MSFC-IS40)[NICS] <mark.faine@nasa.gov> Sent: Friday, April 1, 2022 17:37 To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> 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?
participants (2)
-
Faine, Mark R. (MSFC-IS40)[NICS]
-
Laszlo Varady (lvarady)