[syslog-ng] Include doesn't work

Jakub Prokeš jakub.prokes at superhosting.cz
Wed Jun 20 17:21:19 CEST 2012


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,
-- 
Jakub Prokes
Senior Linux Administrator

m: podpora at superhosting.cz
w: www.superhosting.cz | www.datacamp.sk
[CZ]: +420 296 826 296 | Na Safrance 33, Praha 10 - Vinohrady
[SK]: +421 (2) 2025 6256 | Bozeny Nemcovej 8, Bratislava
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 001-sample.conf
Url: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120620/937969cd/attachment.txt 


More information about the syslog-ng mailing list