syslog-ng pipe to mysql keeps breaking..

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

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux