compression.maxDecompressedBytesPerReceive

Limits decompressed bytes accepted from one compressed TCP receive operation.

This parameter applies to imptcp: Plain TCP Syslog.

Name:

compression.maxDecompressedBytesPerReceive

Scope:

input

Type:

integer

Default:

input=67108864

Required?:

no

Introduced:

8.2612.0

Description

compression.maxDecompressedBytesPerReceive limits how many decompressed bytes imptcp accepts from one compressed TCP receive operation when compression.mode selects stream decompression. The default is 64 MiB.

If the limit is exceeded, imptcp logs the compressed stream as invalid, discards the remaining stream data, and closes the session. Data accepted from earlier receive operations is not affected. Set the value to 0 to disable this limit for tightly controlled deployments that need a larger decompression burst.

The parameter behaves like the identically named imtcp parameter.

Input usage

input(
    type="imptcp"
    port="514"
    compression.mode="stream:always"
    compression.maxDecompressedBytesPerReceive="134217728"
)

YAML usage

modules:
  - load: imptcp
inputs:
  - type: imptcp
    port: "514"
    compression.mode: "stream:always"
    compression.maxDecompressedBytesPerReceive: "134217728"

See also

See also Compression.mode, compression.maxExpansionRatio, and imptcp: Plain TCP Syslog.


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.