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

Balazs Scheidler bazsi at balabit.hu
Mon Jun 9 16:45:09 CEST 2008

On Mon, 2008-06-09 at 15:16 +0200, Andrej Lobovski wrote:
> I upgraded from 1.6.9 ro 2.0.8 but am using same .conf file, which on
> 1.6.9. works perfectly.
> The only line that gives me error (but syslog-ng 2.0.8 then works
> normally if i comment it out) in 2.0.8 is
> destination d_root  { usertty("root" template("$MSGONLY\n")); };
> Has this changed?
> I get syslog-ngsyntax error 273 if I start it. (273 is line in .conf
> file which i mention in this email).
> Thank you in advance

The usertty destination does not support templates in syslog-ng 2.0.x,
but this has not been reported before. (e.g. noone used templates and
usertty together with 2.0.x so far)

It uses this hard-wired format:

g_snprintf(buf, sizeof(buf), "%s %s %s\n", timestamp->str, msg->host.str, msg->msg.str);

So if you remove the template it'll work, and please file a bugreport in 
bugzilla.balabit.com about this.

Thanks in advance,


More information about the syslog-ng mailing list