stdin() Source Driver

The stdin() driver collects messages from the standard input stream.

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.

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

Last updated