Skip to content

Writes events to standard output.

to_stdout

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.

from {x: 1}, {x: 2}
to_stdout {
write_ndjson
}
{"x":1}
{"x":2}
from {x: "Hello World"}
to_stdout
{x: "Hello World"}

Last updated: