Re: Logging to the syslog unix domain socket (Was: [ANNOUNCE] haproxy 1.3.14)

From: Willy Tarreau <w#1wt.eu>
Date: Thu, 24 Jan 2008 13:44:42 +0100


Hi,

On Thu, Jan 24, 2008 at 10:40:45AM +0100, Jean-Baptiste Quenot wrote:
> Hi there,
>
> I just tried logging to the syslog unix domain socket, but it doesn't work:
>
> [ALERT] 023/103837 (1808) : sendto logger #0 failed: Protocol wrong
> type for socket (errno=91)
> [ALERT] 023/103837 (1808) : sendto logger #0 failed: Protocol wrong
> type for socket (errno=91)
> [ALERT] 023/103837 (1808) : sendto logger #0 failed: Protocol wrong
> type for socket (errno=91)
> [ALERT] 023/103837 (1808) : sendto logger #0 failed: Protocol wrong
> type for socket (errno=91)
>
> Here is the configuration snippet:
>
> global
> log /dev/log local0
>
> defaults
> log global
>
> Am I doing something wrong?

Nothing. I'm having this on one of my PCs with an old syslogd which worked in UNIX stream mode. Other syslog servers I have are running in UNIX dgram, just like the ones from this code's contributor.

I'm thinking about a way to support stream sockets for logging (both unix and TCP), but it will take some time as it requires adding a log buffer.

In the mean time, maybe you can find something to change your syslogd's configuration ? At least I don't know how to do that with sysklogd.

Regards,
Willy Received on 2008/01/24 13:44

This archive was generated by hypermail 2.2.0 : 2008/01/24 14:30 CET