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.

Reads a file’s contents.

file_contents(path:string, [binary=bool]) -> blob|string

The file_contents function reads a file’s contents.

Absolute path of file to read.

Whether to read the file contents as a blob, instead of a string.

Defaults to false.

let $secops_config = file_contents("/path/to/file.json").parse_json()
to_google_secops client_email=$secops_config.client_email,

Last updated: