# oversizeMode

Determines how messages larger than MaxDataSize are handled by the listener.

This parameter applies to imrelp: RELP Input Module.

Name:

  oversizeMode

Scope:

  input

Type:

  string

Default:

  input=truncate

Required?:

  no

Introduced:

  8.35.0

## Description

This parameter specifies how messages that are too long will be handled. For this parameter the length of the parameter maxDataSize is used.

- truncate: Messages will be truncated to the maximum message size.

- abort: This is the behaviour until version 8.35.0. Upon receiving a message that is too long imrelp will abort.

- accept: Messages will be accepted even if they are too long and an error message will be output. Using this option does have associated risks.

## Input usage

    input(type="imrelp" port="2514" maxDataSize="10k" oversizeMode="truncate")

## See also

See also imrelp: RELP Input Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.