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.

Transforms event stream to CSV (Comma-Separated Values) byte stream.

write_csv [list_separator=str, null_value=str, no_header=bool]

The write_csv operator transforms an event stream into a byte stream by writing the events as CSV.

The string separating different elements in a list within a single field.

Defaults to ";".

The string denoting an absent value.

Defaults to " ".

Whether to not print a header line containing the field names.

Write an event as CSV.

from {x:1, y:true, z: "String"}
write_csv
x,y,z
1,true,String

Last updated: