Skip to content

write_xsv

Transforms event stream to XSV byte stream.

write_xsv field_separator=str, list_separator=str, null_value=str, [no_header=bool]

The xsv format is a generalization of comma-separated values (CSV) data in tabular form with a more flexible separator specification supporting tabs, commas, and spaces. The first line in an XSV file is the header that describes the field names. The remaining lines contain concrete values. One line corresponds to one event, minus the header.

The following table lists existing XSV configurations:

FormatField SeparatorList SeparatorNull Value
csv,;empty
ssv<space>,-
tsv\t,-

Note that nested records have dot-separated field names.

The string separating different fields.

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

The string denoting an absent value.

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

from {x:1, y:true, z: "String"}
write_xsv field_separator="/", list_separator=";", null_value=""
x/y/z
1/true/String

write_csv, write_lines, write_ssv, write_tsv