OK found my compile error. I had to add an includes for stdio.h in cfg-grammar.c Thanks again for the help On Thu, 2002-07-11 at 12:59, Matthew Dodson wrote:
Sorry I miss read the first email. I am trying to compile 1.5 now. Getting some compile errors working through them now. Thanks for the help.
cfg-grammar.y: In function `yyerror': cfg-grammar.y:703: warning: implicit declaration of function `fprintf' cfg-grammar.y:703: `stderr' undeclared (first use in this function) cfg-grammar.y:703: (Each undeclared identifier is reported only once cfg-grammar.y:703: for each function it appears in.)
On Thu, 2002-07-11 at 12:51, Michael Earls wrote:
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> < 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> < 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 <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