compress_gzip
Compresses a stream of bytes using gzip compression.
compress_gzip [level=int, window_bits=int, format=string]
Description
Section titled “Description”The compress_gzip
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.
format = string (optional)
Section titled “format = string (optional)”A string representing the used format. Possible values are zlib
, deflate
and
gzip
.
Defaults to gzip
.
Examples
Section titled “Examples”Export all events in a Gzip-compressed NDJSON file
Section titled “Export all events in a Gzip-compressed NDJSON file”exportwrite_ndjsoncompress_gzipsave_file "/tmp/backup.json.gz"
Compress using Gzip deflate
Section titled “Compress using Gzip deflate”exportwrite_ndjsoncompress_gzip format="deflate"
Recompress a Gzip-compressed file at a different compression level
Section titled “Recompress a Gzip-compressed file at a different compression level”load_file "in.gzip"decompress_gzipcompress_gzip level=18save_file "out.gzip"
See Also
Section titled “See Also”compress_brotli
,
compress_bz2
,
compress_lz4
,
compress_zstd
,
decompress_gzip