Re: [syslog-ng] Include doesn't work
Hi!
Include files are only snippets and not full configs, so as such they can not have the @version line in them.
I removed version info from snippet, but syntax error is still here. [root@logger:~]# 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 7. At line 7 start this section: destitation d_messages_sample { file("/home/sample/var/$HOST/messages/$YEAR$MONTH$DAY.log"); }; Is there some kind of list available directives in sniplets? Regards, -- Jakub Prokes Senior Linux Administrator m: podpora@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
Sent: Thu Jun 21 2012 08:48:30 GMT-0400 (EDT) From: Jakub Prokeš <jakub.prokes@superhosting.cz> To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng] Include doesn't work
Hi!
Include files are only snippets and not full configs, so as such they can not have the @version line in them.
I removed version info from snippet, but syntax error is still here.
[root@logger:~]# 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 7.
At line 7 start this section:
destitation d_messages_sample { file("/home/sample/var/$HOST/messages/$YEAR$MONTH$DAY.log"); };
Is there some kind of list available directives in sniplets?
Regards, Now you have a typo :-) Should be "destination" not "destitation".
-Patrick
Jakub Prokeš <jakub.prokes@superhosting.cz> writes:
Hi!
Include files are only snippets and not full configs, so as such they can not have the @version line in them.
I removed version info from snippet, but syntax error is still here.
[root@logger:~]# 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 7.
At line 7 start this section:
destitation d_messages_sample { ^ typo there, it should be "destination"
-- |8]
destitation d_messages_sample {
^ typo there, it should be "destination"
Thanks a lot Patrick and Gergely. Shame on me, I spent lots of time looking at config and searching problem. Thanks for your time. Jakub -- Jakub Prokes Senior Linux Administrator m: podpora@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
On Thu, 2012-06-21 at 15:57 +0200, Gergely Nagy wrote:
Jakub Prokeš <jakub.prokes@superhosting.cz> writes:
Hi!
Include files are only snippets and not full configs, so as such they can not have the @version line in them.
I removed version info from snippet, but syntax error is still here.
[root@logger:~]# 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 7.
At line 7 start this section:
destitation d_messages_sample { ^ typo there, it should be "destination"
Newer syslog-ng's tell you more detailed error description, which would've made this more obvious. :) -- Bazsi
participants (4)
-
Balazs Scheidler
-
Gergely Nagy
-
Jakub Prokeš
-
Patrick Hemmer