Skip to main content
Version: Next

compress_zstd

Compresses a stream of bytes using zstd compression.

compress_zstd [level=int]

Description

The compress_zstd operator compresses bytes in a pipeline incrementally.

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

Export all events in a Zstd-compressed NDJSON file

export
write_ndjson
compress_zstd
save_file "/tmp/backup.json.zstd"

Recompress a Zstd-compressed file at a different compression level

load_file "in.zstd"
decompress_zstd
compress_zstd level=18
save_file "out.zstd"