<div>Running 1.6.9 version of syslog-ng.</div>
<div>libol version 3.9</div>
<div>OS is Redhat Fedora 4.</div>
<div>mysql version is 4.1.12 .</div>
<div>Below is my config:</div>
<div> </div>
<div>
<p><em>options { sync (0);<br> time_reopen (10);<br> log_fifo_size (1000);<br> long_hostnames (off);<br> use_dns (yes);<br> use_fqdn (yes);<br> create_dirs (yes);<br>
keep_hostname (yes);<br> };</em></p>
<p><em>source s_net { udp(ip(<a href="http://0.0.0.0">0.0.0.0</a>) port(514)); };</em></p>
<p><em>destination d_mysql { pipe("/tmp/mysql.pipe" template("INSERT INTO logs (host, f<br>acility, priority, level, tag, date, time, program, msg) VALUES ('$HOST', '$FACI<br>LITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$
<br>PROGRAM', '$MSG');\n") template-escape(yes));<br>};</em></p>
<p><em>log { source(s_net); destination(d_mysql); };</em></p>
<p>Here is the script used to pipe /tmp/mysql.pipe into databse:</p>
<p><em>#!/bin/bash</em></p>
<p><em>if [ -e /tmp/mysql.pipe ]; then<br>while [ -e /tmp/mysql.pipe ]<br>do<br>mysql -u syslog --password=password syslog < /tmp/mysql.pipe<br>done<br>else<br>mkfifo /tmp/mysql.pipe<br>fi</em></p>
<p>I have confirmed that I can redirect echo to the pipe, so I know the pipe is working. I've even chmod 777 the pipe. I have also confirmed that log messages are coming in over the network using tcpdump and when I use syslog-ng to log to file, it works just fine. Why doesn't syslog-ng output to the pipe, argh!? Any help would be greatly appreciated.
</p>
<p>Matt<br></p></div>