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);'