Skip to content

Compresses a stream of bytes using zstd compression.

compress_zstd [level=int]

The compress_zstd operator compresses bytes in a pipeline incrementally.

The compression level to use. The supported values depend on the codec used. If omitted, the default level for the codec is used.

Export all events in a Zstd-compressed NDJSON file

Section titled “Export all events in a Zstd-compressed NDJSON file”
export
to_file "/tmp/backup.json.zstd" {
write_ndjson
compress_zstd
}
from_file "in.zstd" {
decompress_zstd
read_ndjson
}
to_file "out.zstd" {
write_ndjson
compress_zstd level=18
}

Last updated: