Second Question about Syslog-NG and MySQL DataBase

I have installed MySQL and Syslog-NG on a OpenBSD 3.4 Box.

when i run the following command:
 mysql -u root --password='secret' syslog </tmp/mysql.pipe
i get the following error:
/etc/syslog-ng/syslog-pipe[9]: cannot open /tmp/mysql.pipe: Interrupted system call

Why ..??
ColinWebdesignAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
What do you want to accomplish ???
0
ColinWebdesignAuthor Commented:
with the following command line:
mysql -u root --password='secret' syslog </tmp/mysql.pipe
mysql imports the syslog-ng database.
but when i run it, i got the error. what is wrong. what is a "Interrupted system call"?
0
gheistCommented:
Freom what i see I can explain:
You read socket as file which will never happen.
Or you rewrote socket with common file to knowingly break mysqld
"Interrupted system call" is expected, when mysql command opens and closes named pipe used by output of syslog-pipe.

So: Waht are you trying to accomplish???
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

ColinWebdesignAuthor Commented:
i just want to know now, how to pipe the syslog logs to mysql
0
gheistCommented:
1) OpenBSD 3.4 is no longer supported ....
2) you make your syslog-ng use unix-stream output to /tmp/mysql.sock  with appropriate template to generate SQL statements that insert data into right tables....
0
ColinWebdesignAuthor Commented:
1) okay
2) what do you mean exactly
0
gheistCommented:
(2) I do not know how you installed syslog-ng, so I cannot help much with configuring it.
look here
http://vermeer.org/display_doc.php?doc_id=1
for
"This script is used to pipe syslog-ng to mysql"

it says "broken pipe" for every record, that is expected...
0
ColinWebdesignAuthor Commented:
gheist: that was the script i used... but that isn't working.
0
gheistCommented:
it kind of inserts in table...
0
ColinWebdesignAuthor Commented:
still isn't working :(
installed the latest stable version of syslog-ng (1.6.5), but no futher results. stil the same stupid error:

cannot open /tmp/mysql.pipe: Interrupted system call
0
gheistCommented:
try changing two lines in that script ( which looks quite illogical btw )

#!/bin/ksh

( cat /tmp/mysql.pipe && tail -F  /tmp/mysql.pipe) | mysql -u theuserid --password=thepassword syslogdb
0
ColinWebdesignAuthor Commented:
Table of MySQL was broken.. dropped the table, created the table and it worked..

thanks for all your help
0
ColinWebdesignAuthor Commented:
Close this thread please...
0
moduloCommented:
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.