[syslog-ng] Include doesn't work

Evan Rempel erempel at uvic.ca
Wed Jun 20 19:22:15 CEST 2012


Include files are only snippets and not full configs, so as such they
can not have the @version line in them.

Evan.

Jakub Prokeš wrote:
> Hi!
>      I use syslog-ng for logging through network, but for some hosts I 
> need special configs. I created directory
> 
> /etc/syslog-ng/syslog-ng.conf.d
> 
> and in there create file with config which is attached and include it in 
> main conf file:
> 
> ## include here config of clients with special options
> include syslog-ng.conf.d/;
> 
> ## common clients
> log {
>    source(s_clients);
>    source(s_local);
>    filter(f_std_facility);
>    destination(d_host_facility);
> };
> 
> The result is syntax error in configuration:
> 
> [root at logger:/etc]# syslog-ng -s -d
> Adding include file; filename='001-sample.conf'
> Starting to read include file; 
> filename='/etc/syslog-ng/syslog-ng.conf.d/001-sample.conf', depth='1'
> syntax error in /etc/syslog-ng/syslog-ng.conf.d/001-sample.conf at line 1.
> 
> syslog-ng documentation: 
> http://www.balabit.com/support/documentation/?product=syslog-ng
> mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> 
> 
> [root at logger:/etc]# syslog-ng --version
> syslog-ng 3.1.3
> Installer-Version: 3.1.3
> Revision: 
> ssh+git://bazsi@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.1#master#def34661b08109f8148904b860457d5747c425b3
> Compile-Date: Feb  1 2011 19:11:59
> Enable-Threads: on
> Enable-Debug: off
> Enable-GProf: off
> Enable-Memtrace: off
> Enable-Sun-STREAMS: off
> Enable-Sun-Door: off
> Enable-IPv6: on
> Enable-Spoof-Source: on
> Enable-TCP-Wrapper: on
> Enable-SSL: on
> Enable-SQL: on
> Enable-Linux-Caps: on
> Enable-Pcre: on
> 
> 
> Can you help me?
> 
> Regards,


-- 
Evan Rempel                               erempel at uvic.ca
Senior Systems Administrator                 250.721.7691
Unix Services, University Systems, University of Victoria


More information about the syslog-ng mailing list