Skip to content

Compresses a stream of bytes using Brotli compression.

compress_brotli [level=int, window_bits=int]

The compress_brotli 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.

A number representing the encoder window bits.

Export all events in a Brotli-compressed NDJSON file

Section titled “Export all events in a Brotli-compressed NDJSON file”
export
to_file "/tmp/backup.json.bt" {
write_ndjson
compress_brotli
}
from_file "in.brotli" {
decompress_brotli
read_ndjson
}
to_file "out.brotli" {
write_ndjson
compress_brotli level=18
}

Last updated: