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 the input event stream to a TQL notation byte stream.

write_tql [strip=bool, color=bool, compact=bool,
strip_null_fields=bool, strip_nulls_in_lists=bool,
strip_empty_records=bool, strip_empty_lists=bool]

Transforms the input event stream to a TQL notation byte stream.

Enables all strip_* options.

Defaults to false.

Write one event per line, omitting linebreaks and indentation of records.

Defaults to false.

Colorize the output.

Defaults to false.

Strips all fields with a null value from records.

Defaults to false.

Strips all null values from lists.

Defaults to false.

Strips empty records, including those that only became empty by stripping.

Defaults to false.

Strips empty lists, including those that only became empty by stripping.

Defaults to false.

from {activity_id: 16, activity_name: "Query", rdata: 31.3.245.133, dst_endpoint: {ip: 192.168.4.1, port: 53}}
write_tql
{
activity_id: 16,
activity_name: "Query",
rdata: 31.3.245.133,
dst_endpoint: {
ip: 192.168.4.1,
port: 53,
},
}
from {yes: 1, no: null}
write_tql strip_null_fields=true
{
yes: 1,
}

Last updated: