Skip to content

Draft: Use UDS instead of TCP for ioclog and iocputlog

syslog-ng is started as soon as possible which means it is started even before the loopback interface is up so it will not be able to create a TCP server socket for the ioclog and iocputlog forwarders.
Instead of delaying the start of syslog-ng let's simply switch to using a Unix domain socket. This solves the problem what requires a daemon/service that will relay information between a TCP socket and the UDS; this should be solved by whoever wants to use the ioclog and iocputlog forwarders.
One possible solution is to use socat:

socat TCP-LISTEN:8001,reuseaddr,fork UNIX-CONNECT:/var/lib/syslog-ng/ioclog.sock

Merge request reports