Skip to main content
Version: edge

compress

Compresses event data.

Unlike decompression processors, the compression algorithm must be selected. Optionally the compression level can be specified for algotithms which support it (example Zstandard with level 0). The following compression post-processors are supported. Each format can be configured as a postprocessor.

Supported formats:

NameAlgorithm / Format
gzipGZip
zlibZLib
xzXz2 level 9 (default)
snappySnappy
lz4Lz level 4 compression (default)
zstdZstandard (defaults to level 0)

Example configuration:

Xz compression example with compression level:

postprocessors = [
{
"name": "compress",
"config": {
"algotithm":"xz2",
"level": 3
}
}
]

Xz compression example without compression level defaults to level 9:

postprocessors = [
{
"name": "compress",
"config": {
"algorithm":"xz2"
}
}
]

Xz compression when wrong compression level is specified gives an Err.