[syslog-ng] Syntax error due to include files in syslog-ng.conf
Ritesh Sood
baralachala at gmail.com
Thu Mar 19 04:01:41 CET 2009
Hi all,
I've built syslog-ng V 3.0.1 from the released source and have the
following at the top of syslog-ng.conf
-----
@version:3.0
include "/etc/syslog-ng/options.inc";
include "/etc/syslog-ng/src-dest-defs.inc";
include "/etc/syslog-ng/filter-defs.inc";
include "/etc/syslog-ng/common-log-defs.inc";
------
syntax checking as
# syslog-ng -s
returns with syntax error at line 3.
Here are the relevant portion from the syslog-ng-admin-guide.pdf
-----
Every syslog-ng configuration file must begin with a line containing
the version infor mation of syslog-ng. For syslog-
ng version 3.0, this line looks like:
@version:3.0
.
.
.
The syslog-ng application supports including external files in its
configuration file, so parts of its configuration can
be managed separately. To include the contents of a file in the syslog-
ng configuration, use the following syntax
include "filename";
This imports the entire file into the configuration of syslog-ng, at
the location of the include statement. If you
specify a directory, syslog-ng will try to include every file in
alphabetic order. When including configuration files,
consider the following points:
----
The config file works okay if I copy-paste the corresponding files in
place of the include statements so the included files themselves are
syntactically correct. So I don't see where I'm making an error.
I hope there isn't a bug in the source. I'm not counting out that
possibility since there was a bug in the released source for which I
had to obtain a patch from the git repo:
https://lists.balabit.hu/pipermail/syslog-ng/2009-January/012400.html
Help much appreciated !
Ritesh
More information about the syslog-ng
mailing list