[syslog-ng] Include doesn't work

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

     I use syslog-ng for logging through network, but for some hosts I 
need special configs. I created directory


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 {

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: 
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
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?

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