compress_brotli
Compresses a stream of bytes using Brotli compression.
compress_brotli [level=int, window_bits=int]
Description
Section titled “Description”The compress_brotli
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.
window_bits = int (optional)
Section titled “window_bits = int (optional)”A number representing the encoder window bits.
Examples
Section titled “Examples”Export all events in a Brotli-compressed NDJSON file
Section titled “Export all events in a Brotli-compressed NDJSON file”exportwrite_ndjsoncompress_brotlisave_file "/tmp/backup.json.bt"
Recompress a Brotli-compressed file at a different compression level
Section titled “Recompress a Brotli-compressed file at a different compression level”load_file "in.brotli"decompress_brotlicompress_brotli level=18save_file "out.brotli"
See Also
Section titled “See Also”compress_bz2
,
compress_gzip
,
compress_lz4
,
compress_zstd
,
decompress_brotli