[syslog-ng] Error logging to MySQL
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Sun May 29 18:22:11 CEST 2005
On Sun, 29 May 2005 14:46:49 BST, "Colin O'Keeffe" said:
> I get
>
> syntax error at 132
> Parse error reading configuratin file, exiting. (line 132)
> destination d_mysql {
> pipe("/tmp/mysql.pipe"
> template("INSERT INTO logs VALUES('$HOST', '$FACILITY', '$PRIORITY',
> '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$PROGRAM',
> '$MSG');\n") template-escape(yes));
> };
> log {source; destination(d_mysql);
> };
I'm guessing that the 'log' is line 132? Maybe you need something after
the 'source' telling it *which* source? "source(s_all);" may be what you meant
to have here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20050529/f3079170/attachment.pgp
More information about the syslog-ng
mailing list