# DiscardTruncatedMsg

Discards data beyond the truncation point in octet-stuffing mode.

This parameter applies to imtcp: TCP Syslog Input Module.

Name:

  DiscardTruncatedMsg

Scope:

  module, input

Type:

  boolean

Default:

  module=off, input=module parameter

Required?:

  no

Introduced:

  at least 5.x, possibly earlier

## Description

Normally when a message is truncated in octet stuffing mode the part that is cut off is processed as the next message. When this parameter is activated, the part that is cut off after a truncation is discarded and not processed.

The same-named input parameter can override this module setting.

## Module usage

    module(load="imtcp" discardTruncatedMsg="on")

## Input usage

    input(type="imtcp" port="514" discardTruncatedMsg="on")

## See also

See also imtcp: TCP Syslog 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.