syslog-ng config file include feature...
I found in list archives that back in March 2002 there was conversation about modifying syslog-ng so that the syslog-ng.conf file could be split apart. Mine is large and unwieldy - I'd like to break it into files for each file, or for each set of files, that syslog-ng creates. In my dhcpd.conf, I have include statements after my global definitions, allowing me to split the config apart, guaranteeing changes only in the places where I mean them to be. I'd like to do something like that here. Is there some behavior like this in syslog-ng somewhere? A quick google search and a read of the syslog-ng.conf man page doesn't indicate that there is... I am running 2.1.1 with the patch that came over the list on 9/2/08 on CentOS 5.2. Thanks in advance! -Rick -- Rick Coloccia, Jr. Network Manager State University of NY College at Geneseo 1 College Circle, 119 South Hall Geneseo, NY 14454 V: 585-245-5577 F: 585-245-5579
Hi,
I found in list archives that back in March 2002 there was conversation about modifying syslog-ng so that the syslog-ng.conf file could be split apart. Mine is large and unwieldy - I'd like to break it into files for each file, or for each set of files, that syslog-ng creates.
There is no such functionality in syslog-ng. You can easily achieve this to update your init script to do something like 'cat /etc/syslog-ng/syslog-ng.conf.d/* > /etc/syslog-ng/syslog-ng.conf' when syslog-ng is started or the config is reloaded. Regards, Sandor -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
participants (2)
-
Geller, Sandor (IT)
-
Rick Coloccia