Executes a system command and hooks its stdin and stdout into the pipeline.
shell cmd:string
Description
Section titled “Description”The shell
operator executes the provided command by spawning a new process.
The input of the operator is forwarded to the child’s standard input. Similarly,
the child’s standard output is forwarded to the output of the operator.
cmd: string
Section titled “cmd: string”The command to execute and hook into the pipeline processing. It is interpreted
by /bin/sh -c
.
Secrets
Section titled “Secrets”By default, the shell
operator does not accept secrets. If you want to allow
usage of secrets in the cmd
argument, you can enable the configuration option
tenzir.allow-secrets-in-escape-hatches
.
Examples
Section titled “Examples”Show a live log from the tenzir-node
service
Section titled “Show a live log from the tenzir-node service”shell "journalctl -u tenzir-node -f"read_json