[syslog-ng]destination sockets

Porkchop syslog-ng@lists.balabit.hu
Sat, 20 Mar 2004 00:35:47 -0500


I saw an earlier thread about syslog-ng not 
creating/bind()ing/socket()ing sockets when it was generating 
messages... it never seemed quite resolved. I am attempting to create 
an outbound socket for syslog-ng to write to and that multiple 
clients (servers?) can read from.

I am attempting to:
destination d-plog { unix-stream("/tmp/d-plog.sock"
  template("$HOST $HOUR $MIN $SEC $FACILITY $PRIORITY $PROGRAM $MSG\n")
  template_escape(no) );  };

I'd then have multiple clients reading /tmp/d-plog.sock.
Can't use a pipe (multiple clients). Can't use a file (log storage is 
done in SQL).

Of course...
root@lostcause:/home/porkchop# syslog-ng -v
binding fd 5, unixaddr: /dev/log
binding fd 6, inetaddr: 10.10.10.1, port: 514
binding fd 7, inetaddr: 0.0.0.0, port: 514
connecting fd 8, unixaddr: /tmp/d-porklog.sock
Error connecting to AF_UNIX(/tmp/d-porklog.sock): Bad file descriptor
Error initializing configuration, exiting.
root@lostcause:/home/porkchop#


Am I missing something?
-porkchop