unix-stream() Destination Driver
The unix-stream() destination driver send messages to a UNIX domain socket in either SOCK_STREAM mode.
Important Information
Unix-dgram() is used on BSDs and uses SOCK_DGRAM semantics: this may result in lost local messages if the system is overloaded.
In the official documentation, /dev/log
is the default entry for system logging. This, in fact, is a socket, not a regular file or a pipe. MacOS, however, uses /var/run/syslog
for the same. This needs to be kept in mind while referring to the documentation.
Status
Architecture
Status
x86
Works
ARM
Works
How to Test
To test the unix-dgram() drivers, we will run two instances of syslog-ng. One where we are transmitting data to a socket using the unix-dgram() destination driver that needs to be tested. And another that will listen for the data on the socket using the unix-stream() source driver.
Source Configuration File
Note: We need to run the source driver first as it will open the socket to which the destination driver connects to.
Destination Configuration File
Proof
Last updated