# stdin() Source Driver

### Important Information

When the standard input stream is closed, syslog-ng stops and stdin() inherits all options from the file() source, including multi-line options, or flags(no-parse). The stdin() driver causes syslog-ng to exit once it hits end-of-file (EOF).

### Status

| Architecture | Status |
| :----------: | :----: |
|      x86     |  Works |
|      ARM     |  Works |

### How to Test

To test the stdin() source driver, we run a very simple configuration file as shown below and then type into the terminal to simulate the standard input stream.&#x20;

#### Configuration File Used

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

source std_inp{
    stdin();
};

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

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

#### Proof

![stdin() input tested on macOS (x86) ](https://3267548193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MaZdBoDvCx_0JwOUICk%2F-McAVvKWZ-jXS9f3Yz2t%2F-McAXr-ALKarFZMFlKWL%2FScreenshot%202021-06-14%20at%208.21.42%20PM.png?alt=media\&token=ad8b6cb1-e206-41e5-9ad6-90d1bed17759)

![stdin() input tested on macOS (ARM) ](https://3267548193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MaZdBoDvCx_0JwOUICk%2F-MhXfp6utMsNE9_-xfVe%2F-MhXlJkKpP_vllbPQaAJ%2FScreen%20Shot%202021-08-20%20at%2011.52.54%20AM.png?alt=media\&token=7f01ddae-ce36-4eaa-9c78-ab4e27d4815e)
