[syslog-ng]syslog-ng doesn't work with minilogd
Daniel Tschan
tschan+syslog-ng@devzone.ch
Mon, 30 Dec 2002 13:13:28 +0100 (CET)
> Maybe minilogd expects a SOCK_DGRAM (unix-dgram) socket as /dev/log and
> you are using a SOCK_STREAM one (unix-stream)?
Yes, that's it. Thank you. I am using syslog-ng.conf.RedHat from the
contrib directory. I know this file is not officially supported, but
perhaps this should be changed.
> Maybe we could help you if you gave us some more information, like
> strace-ing minilogd as it tries to deliver a message.
For completeness, here is the strace (syslog-ng running with
unix-dgram("/dev/log") ):
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, {2, 0}) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 5
connect(5, {sin_family=AF_UNIX, path="/dev/log"}, 110) = 0
write(5, "<189>Dec 30 12:42:54 syslog-ng: "..., 62) = 62
write(5, "<94>Dec 30 12:42:55 pure-ftpd[24"..., 100) = 100
write(5, "<38>Dec 30 12:43:00 su(pam_unix)"..., 88) = 88
write(5, "<38>Dec 30 12:43:04 su(pam_unix)"..., 71) = 71
_exit(0) = ?
Daniel