<br>I am trying to log to mysql. I am running syslog-ng 3.0.4 on Solaris 10 Update 8.<br><br>I have the following stanza in syslog-ng.conf:<br><span style="font-family: courier new,monospace;">destination r_mysql {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> sql(type(mysql)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> host("localhost") username("syslog") password("xxxxxxx")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> database("syslog")</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> table("messages_${HOST}_${R_YEAR}${R_MONTH}${R_DAY}")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> columns("datetime", "host", "program", "pid", "message")</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> values("$R_DATE", "$HOST", "$PROGRAM", "$PID", "$MSGONLY")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> indexes("datetime", "host", "program", "pid", "message"));</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> };</span><br>
<br>It is complaining about the syntax.. Anyone have any ideas?<br><br>Thx<br>