# unix-stream() Source Driver

### Important Information

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 |

### Configuration File Used

```
@version: 3.31
@include "scl.conf"

options {
    stats-freq(10);
    time-reopen(10);
};

source s_stream {
    unix-stream("/var/run/syslog");
};

destination console{
    file(/dev/stdout);
};

log {
    source(s_stream);
    destination(console);
};
```

### Proof

![unix-stream() source driver tested using netcat on macOS (x86)](https://3267548193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MaZdBoDvCx_0JwOUICk%2F-MbzbQ6JDCM4cZ6ty7kI%2F-Mc-jsbRgyK3q_nRzL4o%2FScreenshot%202021-06-12%20at%206.02.44%20PM.png?alt=media\&token=172f4e28-15c3-43d8-a594-2ba82961ca4a)

> Note : unix-stream() does not support multiple lines as the record separator is the NL character, so if you embed "\n" in the log message, they will become separate messages.

![unix-stream() source driver tested using netcat on macOS (ARM)](https://3267548193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MaZdBoDvCx_0JwOUICk%2F-Mc-kE2WR2B0Bqobycuq%2F-Mc-l6mxT6NuIkPNs78D%2FScreenshot%202021-06-12%20at%206.07.55%20PM.png?alt=media\&token=eba62253-76ab-41ca-8857-9831b45a36d9)
