[syslog-ng] unusual syntax error while parsing .conf file

Fegan, Joe Joe.Fegan at hp.com
Tue Jun 10 12:43:06 CEST 2008


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 at lists.balabit.hu [mailto:syslog-ng-bounces at 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!<http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20080610/b8feb889/attachment.htm 


More information about the syslog-ng mailing list