Writes events to standard output.
to_stdoutDescription
Section titled “Description”The to_stdout operator writes events to standard output. Without a nested
pipeline, to_stdout prints TQL by default. This is useful when using the
tenzir executable as part of a shell script or command chain.
An optional pipeline to transform the input before writing it to standard
output. The pipeline receives the input of to_stdout and must produce bytes.
Use a writer such as write_ndjson, write_json, or write_tql when the input
is events.
Omit the pipeline to print events as TQL.
Examples
Section titled “Examples”Write events as NDJSON
Section titled “Write events as NDJSON”from {x: 1}, {x: 2}to_stdout { write_ndjson}{"x":1}{"x":2}Write events as TQL
Section titled “Write events as TQL”from {x: "Hello World"}to_stdout{x: "Hello World"}