Hi, I am having serious trouble with templates. This is what I have in my syslog-ng.conf destination test { file ("test" template("$ISODATE $HOST $MSG\n") template_escape(yes) ); }; I always get a parse error in the template("$ISODATE $HOST $MSG\n") line. I am running the FreeBSD port of syslog-ng version 1.6.0rc1. What is the problem? I have these options set: options { long_hostnames(on); sync(0); use_time_recvd(yes); use_dns(yes); keep_hostname(no); chain_hostnames(no); use_fqdn(yes); gc_busy_threshold(768); time_reap(12); time_reopen(10); create_dirs(yes); }; Thanks, JP
On Tuesday 01 April 2003 14:36, Jan-Peter Koopmann wrote:
I am having serious trouble with templates. This is what I have in my syslog-ng.conf
destination test { file ("test" template("$ISODATE $HOST $MSG\n") template_escape(yes) ); };
I always get a parse error in the
template("$ISODATE $HOST $MSG\n")
line. I am running the FreeBSD port of syslog-ng version 1.6.0rc1.
Mmmh, the declaration seems to be OK - I copy paste it into a file and "syslog -s -f test.conf" doesn't complain about it. Can you please post the hole configuration file? May be the error is somewhere else. Achim
Hi, I had a problem similar to this on one of my FreeBSD servers. There was a patch for the syslog-ng port that disabled the template option. Make sure that you do NOT have the file patch-cfg-lex.l in your files directory under the syslog-ng port tree. Instead you should see patch-cfg-grammer.h (and a couple of other valid patches) John On Tue, Apr 01, 2003 at 07:08:30PM +0200, Achim Gsell wrote:
On Tuesday 01 April 2003 14:36, Jan-Peter Koopmann wrote:
I am having serious trouble with templates. This is what I have in my syslog-ng.conf
destination test { file ("test" template("$ISODATE $HOST $MSG\n") template_escape(yes) ); };
I always get a parse error in the
template("$ISODATE $HOST $MSG\n")
line. I am running the FreeBSD port of syslog-ng version 1.6.0rc1.
Mmmh, the declaration seems to be OK - I copy paste it into a file and "syslog -s -f test.conf" doesn't complain about it. Can you please post the hole configuration file? May be the error is somewhere else.
Achim
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
participants (3)
-
Achim Gsell
-
Jan-Peter Koopmann
-
John Zaitz