Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.06 KB

File metadata and controls

34 lines (26 loc) · 1.06 KB

stdin operator

The stdin generates entries from lines written to stdin.

Configuration Fields

Field Default Description
id generate_input A unique identifier for the operator
output Next in pipeline The connected operator(s) that will receive all outbound entries
write_to $ A field that will be set to the path of the file the entry was read from

Example Configurations

Mock a file input

Configuration:

- type: stdin

Command:

echo "test" | stanza -c ./config.yaml

Output records:

{
  "timestamp": "2020-11-10T11:09:56.505467-05:00",
  "severity": 0,
  "record": "test"
}