[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

syslog-ng pipe to mysql keeps breaking..



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]