All, I have without any issues setup syslog-ng with Mysql using the script that I found called syslog2mysql.sh which is shown below.<br><br>#!/bin/bash<br><br>if [ ! -e /var/log/mysql.pipe ]<br>then<br> mkfifo /var/log/mysql.pipe
<br>fi<br>while [ -e /var/log/mysql.pipe ]<br>do<br> mysql -u syslogfeeder --password=ergosum syslog < /var/log/mysql.pipe >/dev/null<br>done<br><br><br>This works fine with most devices however I have added a new one and no messages are being recieved, this is what happens when I strace the process.
<br><br>viper:/home/chrisk# strace -p 13232<br>Process 13232 attached - interrupt to quit<br>read(0, "INSERT INTO logs\n(host, facility"..., 4096) = 275<br>read(0, "INSERT INTO logs\n(host, facility"..., 4096) = 275
<br>read(0, "INSERT INTO logs\n(host, facility"..., 4096) = 275<br>write(2, "ERROR", 5) = 5<br>write(2, " at line 13", 11) = 11<br>write(2, ": Unknown command \'\\\'\'.\n", 24) = 24
<br>fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0<br>read(3, 0x8060318, 16384) = -1 EAGAIN (Resource temporarily unavailable)<br>fcntl64(3, F_SETFL, O_RDWR) = 0<br>write(3, "\1\0\0\0\1", 5) = 5
<br>shutdown(3, 2 /* send and receive */) = 0<br>close(3) = 0<br>exit_group(1) = ?<br>Process 13232 detached<br>viper:/home/chrisk# <br><br>The process dies and it restarted with nothing being put into the database. Anyone got any ideas at all??
<br><br>Regards<br><br>Chris K<br>