syslog-ng pipe to mysql keeps breaking..

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

 



Hi
Please advise on how to configure the pipe for syslog-ng to reliably pipe data to mysl ...
Some how mine keeps breaking ... It works for awhile the stops for no reason ...
and syslog-ng stops logging to the pipe ... i  end up have to recreate the pipe
and restart syslog-ng ...

what are the correct permitions / commands to use for fc 5 and centos 4 ?
I haven't worked with pipes before..

this the the code I used  ... to create the pipe ..
 
#!/bin/bash  
#
# Script to create a named pipe so syslog-ng messages
# can be sent to a MySQL database

if [ -p /var/run/mysql.pipe ]; then
    /usr/bin/mysql -u syslog_ng --password=syslog_ng syslog_ng < /var/run/mysql.pipe &
else
  mkfifo /var/run/mysql.pipe
fi


Many Thanks
--
Gregory Machin
gregory.machin@xxxxxxxxx
www.linuxpro.co.za
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux