[syslog-ng]Syntax question

Michael Earls Michael.Earls@chmcc.org
Thu, 11 Jul 2002 13:51:21 -0400


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_0A5617B7.4F2E4207
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

the pipe template is not supported in that ver, u need to switch to
1.5.x release

>>> mdodson@coremetrics.com 07/11/02 11:26AM >>>


I am using syslog-ng-1.4.15 with libol-0.2.23 on RH72



On Thu, 2002-07-11 at 10:15, Michael Earls wrote:
> what ver of syslog-ng, b/c template() destinations are only supported
by
> the 1.5.x releases. 
>  
> michael
> 
> >>> mdodson@coremetrics.com 07/11/02 11:01AM >>>
> 
> 
> Every time I start syslog-ng I receive a "Parse error reading
> configuration file, exiting." It points to the following line in my
> config:
> 
> destination d_pipe { pipe("/tmp/mysql.pipe" template("INSERT INTO
logs
> (host, facility, priority, level, tag, date, time, program, msg)
VALUES
> ('$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG',
> '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$PROGRAM', '$MSG');\n")
> template_escape(yes)); };
> 
> 
> Can anyone tell me what is wrong with this syntax?
> Sorry for this newbie question but I can't seem to get the syntax
right.
> 
> 
> Thanks,
> Mdodson
> 
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu 
> https://lists.balabit.hu/mailman/listinfo/syslog-ng 
> <https://lists.balabit.hu/mailman/listinfo/syslog-ng> 
> Frequently asked questions at
http://www.campin.net/syslog-ng/faq.html 
> <http://www.campin.net/syslog-ng/faq.html> 
> 
> 



_______________________________________________
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



--=_0A5617B7.4F2E4207
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px"><FONT 
size=2>the pipe template is not supported in that ver, u need to switch to 1.5.x 
release</FONT><BR><BR>&gt;&gt;&gt; mdodson@coremetrics.com 07/11/02 11:26AM 
&gt;&gt;&gt;<BR><BR><BR>I am using syslog-ng-1.4.15 with libol-0.2.23 on 
RH72<BR><BR><BR><BR>On Thu, 2002-07-11 at 10:15, Michael Earls wrote:<BR>&gt; 
what ver of syslog-ng, b/c template() destinations are only supported by<BR>&gt; 
the 1.5.x releases. <BR>&gt;&nbsp; <BR>&gt; michael<BR>&gt; <BR>&gt; 
&gt;&gt;&gt; mdodson@coremetrics.com 07/11/02 11:01AM &gt;&gt;&gt;<BR>&gt; 
<BR>&gt; <BR>&gt; Every time I start syslog-ng I receive a "Parse error 
reading<BR>&gt; configuration file, exiting." It points to the following line in 
my<BR>&gt; config:<BR>&gt; <BR>&gt; destination d_pipe { pipe("/tmp/mysql.pipe" 
template("INSERT INTO logs<BR>&gt; (host, facility, priority, level, tag, date, 
time, program, msg) VALUES<BR>&gt; ('$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', 
'$TAG',<BR>&gt; '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$PROGRAM', 
'$MSG');\n")<BR>&gt; template_escape(yes)); };<BR>&gt; <BR>&gt; <BR>&gt; Can 
anyone tell me what is wrong with this syntax?<BR>&gt; Sorry for this newbie 
question but I can't seem to get the syntax right.<BR>&gt; <BR>&gt; <BR>&gt; 
Thanks,<BR>&gt; Mdodson<BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; syslog-ng maillist&nbsp; 
-&nbsp; syslog-ng@lists.balabit.hu<BR>&gt; <A 
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</A><BR>&gt; 
&lt;<A 
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</A>&gt; 
<BR>&gt; Frequently asked questions at <A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A><BR>&gt; 
&lt;<A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A>&gt; 
<BR>&gt; <BR>&gt; 
<BR><BR><BR><BR>_______________________________________________<BR>syslog-ng 
maillist&nbsp; -&nbsp; syslog-ng@lists.balabit.hu<BR><A 
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</A><BR>Frequently 
asked questions at <A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A><BR><BR></BODY></HTML>

--=_0A5617B7.4F2E4207--