Compresses a stream of bytes using zstd compression.
compress_zstd [level=int]Description
Section titled “Description”The compress_zstd operator compresses bytes in a pipeline incrementally.
level = int (optional)
Section titled “level = int (optional)”The compression level to use. The supported values depend on the codec used. If omitted, the default level for the codec is used.
Examples
Section titled “Examples”Export all events in a Zstd-compressed NDJSON file
Section titled “Export all events in a Zstd-compressed NDJSON file”exportto_file "/tmp/backup.json.zstd" { write_ndjson compress_zstd}Read and write Zstd-compressed NDJSON
Section titled “Read and write Zstd-compressed NDJSON”from_file "in.zstd" { decompress_zstd read_ndjson}to_file "out.zstd" { write_ndjson compress_zstd level=18}