Feature Request: conf.d-like folders or include statement
I'm finding that I'm in need of a recursive conf.d-like configuration folder for syslog-ng. The reason I'm asking this is because I have many hosts, each requiring a separate configuration from the other, and my syslog-ng.conf file is getting pretty large, messy, and unmanageable. If it could iterate/enumerate /etc/syslog-ng/conf.d and add each of those to the 'running' config, that would be amazing. I think this could also work, in a less versatile function, by an 'include' statement in syslog-ng.conf. Ie: include { includefile(/etc/syslog-ng/extra/hostname.conf); }; Am I on the right track, or is there a function to do this? :) -JP Senior
You could modify your /etc/init.d/syslog-ng script to concatenate the conf.d files into a "master" configuration file and then start syslog-ng. I like the feature request, but until it is implimented, my suggestion might get you by. Evan. JP Senior wrote:
I'm finding that I'm in need of a recursive conf.d-like configuration folder for syslog-ng.
The reason I'm asking this is because I have many hosts, each requiring a separate configuration from the other, and my syslog-ng.conf file is getting pretty large, messy, and unmanageable.
If it could iterate/enumerate /etc/syslog-ng/conf.d and add each of those to the 'running' config, that would be amazing.
I think this could also work, in a less versatile function, by an 'include' statement in syslog-ng.conf.
Ie:
include { includefile(/etc/syslog-ng/extra/hostname.conf); };
Am I on the right track, or is there a function to do this? :)
-JP Senior
------------------------------------------------------------------------
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- Evan Rempel erempel@uvic.ca Senior Programmer Analyst 250.721.7691 Computing Services University of Victoria
participants (2)
-
Evan Rempel
-
JP Senior