<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Times New Roman, Times, serif">Hi list,<br>
<br>
I use syslog-ng to create log files from within a script. The
script sends the message through a pipe to syslog-ng, which I use
as command line tool. In the syslog-ng.conf I created a source
which reads the standard input. very simplified:<br>
<br>
Config:<br>
source src { pipe("/dev/fd/0"); };<br>
destination dst { file("/tmp/test.log"); };<br>
log { source(src); destination(dst); };<br>
<br>
Called as:<br>
<br>
echo "test" | /usr/sbin/syslog-ng -f /tmp/syslog-ng.conf<br>
<br>
<br>
This works perfectly in 2.0.9. Now I am in the process of
upgrading the system and syslog-ng 3.2.4. With this version of
syslog-ng the config file above results in an error:<br>
<br>
Error opening file for reading; filename='/dev/fd/0',
error='Text file busy (26)'<br>
Error initializing source driver; source='src', id='src#0'<br>
Error initializing message pipeline;<br>
<br>
<br>
I tried several things to get rid of this error, like replacing
'pipe' in 'file', but nothing seems to work.<br>
<br>
Any ideas?<br>
<br>
<br>
Regards,<br>
Remy<br>
<br>
</font>
</body>
</html>