compression.maxExpansionRatio¶
Limits the cumulative decompressed-to-compressed byte ratio accepted for a stream.
This parameter applies to imtcp: TCP Syslog Input Module.
- Name:
compression.maxExpansionRatio
- Scope:
input/module
- Type:
integer
- Default:
input=1024
- Required?:
no
- Introduced:
8.2606.0
Description¶
compression.maxExpansionRatio limits how much decompressed output imtcp
accepts relative to compressed bytes received across the compressed stream when
compression.mode="stream:always" is enabled. The default allows up to 1024
decompressed bytes per compressed byte.
If the ratio is exceeded, imtcp logs the compressed stream as invalid and
closes the session. This bounds decompression amplification from malformed or
unexpectedly dense compressed streams. Set the value to 0 to disable this
ratio limit for tightly controlled deployments.
Input usage¶
input(
type="imtcp"
port="514"
compression.mode="stream:always"
compression.maxExpansionRatio="2048"
)
See also¶
See also compression.mode, compression.maxDecompressedBytesPerReceive, and imtcp: TCP Syslog Input Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.