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”exportto_file "/tmp/backup.json.bt" { write_ndjson compress_brotli}Read and write Brotli-compressed NDJSON
Section titled “Read and write Brotli-compressed NDJSON”from_file "in.brotli" { decompress_brotli read_ndjson}to_file "out.brotli" { write_ndjson compress_brotli level=18}