Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Writes a byte stream to a file.

save_file path:string, [append=bool, real_time=bool, uds=bool]

Writes a byte stream to a file.

The file path to write to. If intermediate directories do not exist, they will be created. When ~ is the first character, it will be substituted with the value of the $HOME environment variable.

If true, appends to the file instead of overwriting it.

If true, immediately synchronizes the file with every chunk of bytes instead of buffering bytes to batch filesystem write operations.

If true, creates a Unix Domain Socket instead of a normal file. Cannot be combined with append=true.

save_file "/tmp/out.txt"

Last updated: