Transforms event stream to CSV (Comma-Separated Values) byte stream.
write_csv [list_separator=str, null_value=str, no_header=bool]Description
Section titled “Description”The write_csv operator transforms an event stream into a byte stream by writing
the events as CSV.
list_separator = str (optional)
Section titled “list_separator = str (optional)”The string separating different elements in a list within a single field.
Defaults to ";".
null_value = str (optional)
Section titled “null_value = str (optional)”The string denoting an absent value.
Defaults to " ".
no_header = bool (optional)
Section titled “no_header = bool (optional)”Whether to not print a header line containing the field names.
Examples
Section titled “Examples”Write an event as CSV.
from {x:1, y:true, z: "String"}write_csvx,y,z1,true,StringSee Also
Section titled “See Also”parse_csv,
print_csv,
read_csv,
write_lines,
write_ssv,
write_tsv,
write_xsv