Hi all, Using syslog-ng 1.4.14 at Suse Linux 8.1 I'm trying to run php-syslog-ng (a syslog webviewer), but it does not work. For it works, is needed to log to a database, as MySQL. PHP-Syslog-ng website have on step-by-step script, that I used. When I try to run syslog-ng, it complains about this line (in syslog-ng.conf is at one line): destination d_mysql { 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)); }; log { source(net); destination(d_mysql); }; I believe this "template" isn't supported in this syslog version. Is that true? The problem is I couldn't upgrade it to version 1.5 or higher, because of libs dependencies... Have one of you logged to mySQL using syslog-ng 1.4.14? Thanks a lot, Eddie
why dont you use the latest version ? * app-admin/syslog-ng Latest version available: 1.6.5-r1 Latest version installed: 1.6.5-r1 Size of downloaded files: 387 kB Homepage: http://www.balabit.com/products/syslog_ng/ Description: syslog replacement with advanced filtering features License: GPL-2 i got php-syslog-ng working perfectly, i even hacked it to my needs.. its great. Petre Daniel System & Network Administrator Romania Data Systems Pitesti http://www.rdspt.ro Phone: +40-348-400401 ---------------------------------------------------------------------- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail. ---------------------------------------------------------------------- -----Original Message----- From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Eduardo Oliveira Scricco (Service) Sent: Tuesday, November 30, 2004 6:54 PM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]php-syslog-ng Hi all, Using syslog-ng 1.4.14 at Suse Linux 8.1 I'm trying to run php-syslog-ng (a syslog webviewer), but it does not work. For it works, is needed to log to a database, as MySQL. PHP-Syslog-ng website have on step-by-step script, that I used. When I try to run syslog-ng, it complains about this line (in syslog-ng.conf is at one line): destination d_mysql { 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)); }; log { source(net); destination(d_mysql); }; I believe this "template" isn't supported in this syslog version. Is that true? The problem is I couldn't upgrade it to version 1.5 or higher, because of libs dependencies... Have one of you logged to mySQL using syslog-ng 1.4.14? Thanks a lot, Eddie _______________________________________________ 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
participants (2)
-
Eduardo Oliveira Scricco (Service)
-
petre daniel