Hi Andrej,
 
I think you misunderstood. Bazsi said that templates do not work with usertty in 2.0.8. You will have to remove the template from your definition. The piece of C code he included was just to show you what will be sent to usertty when you have no template.
 
Joe.


From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Andrej Lobovski
Sent: 10 June 2008 11:37
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] unusual syntax error while parsing .conf file

So this line (in 1.6.9.):

> > destination d_root { usertty("root" template("$MSGONLY\n")); };

is equal to this line (2.0.8.):
 
> g_snprintf(buf, sizeof(buf), "%s %s %s\n", timestamp->str, msg->host.str, msg->msg.str);

?

If not, which line can replace the 1.6.9. version one, mentioned in this mail?


Thank you in advance!

Andrej


Discover the new Windows Vista Learn more!