Skip to content

write_zeek_tsv

Transforms event stream into Zeek Tab-Separated Value byte stream.

write_zeek_tsv [set_separator=str, empty_field=str, unset_field=str, disable_timestamp_tags=bool]

The Zeek network security monitor comes with its own tab-separated value (TSV) format for representing logs. This format includes additional header fields with field names, type annotations, and additional metadata.

The write_zeek_tsv operator (re)generates the TSV metadata based on Tenzir’s internal schema. Tenzir’s data model is a superset of Zeek’s, so the conversion into Zeek TSV may be lossy. The Zeek types count, real, and addr map to the respective Tenzir types uint64, double, and ip.

Specifies the set separator.

Defaults to \x09.

Specifies the separator for empty fields.

Defaults to (empty).

Specifies the separator for unset “null” fields.

Defaults to -.

Disables the #open and #close timestamp tags.

Defaults to false.

Write pipelines results in Zeek TSV format

Section titled “Write pipelines results in Zeek TSV format”
subscribe "zeek-logs"
where duration > 2s and id.orig_p != 80
write_zeek_tsv
save_file "filtered_conn.log"

read_zeek_json, read_zeek_tsv, write_zeek_json