[syslog-ng] Syntax in 3.0 Admin Guide not working for MySQL
syslogng at feystorm.net
syslogng at feystorm.net
Thu Jul 29 20:36:12 CEST 2010
Put quotes around mysql in type(mysql).
Sent: Thursday, July 29, 2010 12:29:56 PM
From: Chuck <chuck.carson at gmail.com>
To: Syslog-ng users' and developers' mailing list
<syslog-ng at lists.balabit.hu>
Subject: [syslog-ng] Syntax in 3.0 Admin Guide not working for MySQL
>
> I am trying to log to mysql. I am running syslog-ng 3.0.4 on Solaris
> 10 Update 8.
>
> I have the following stanza in syslog-ng.conf:
> destination r_mysql {
> sql(type(mysql)
> host("localhost") username("syslog") password("xxxxxxx")
> database("syslog")
> table("messages_${HOST}_${R_YEAR}${R_MONTH}${R_DAY}")
> columns("datetime", "host", "program", "pid", "message")
> values("$R_DATE", "$HOST", "$PROGRAM", "$PID", "$MSGONLY")
> indexes("datetime", "host", "program", "pid", "message"));
> };
>
> It is complaining about the syntax.. Anyone have any ideas?
>
> Thx
> ------------------------------------------------------------------------
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100729/c0572b91/attachment.htm
More information about the syslog-ng
mailing list