syslog-ng pipe to mysql keeps breaking..

Alan J. Gagne alan.gagne at comcast.net
Thu Sep 21 16:14:16 UTC 2006


This is what I have been using on FC5.

# more syslogfeeder.sh
#!/bin/sh

if [ ! -e /var/log/mysql.pipe ]
then
        mkfifo /var/log/mysql.pipe
fi
while [ -e /var/log/mysql.pipe ]
do
        mysql -u syslogfeeder --password=XXX syslog
< /var/log/mysql.pipe >/dev/null
done





More information about the fedora-list mailing list