# escapeLF.replacement

Overrides the default LF escape sequence when `escapeLF` is `on`.

This parameter applies to imfile: Text File Input Module.

Name:

  escapeLF.replacement

Scope:

  input

Type:

  string (see Rsyslog Parameter String Constants)

Default:

  depending on use

Required?:

  no

Introduced:

  8.2001.0

## Description

Works together with `escapeLF`. It is honored only if `escapeLF="on"`. It permits replacing the default escape sequence, which historically may be `#012` or `\n`. If not configured, that default remains.

Examples:

    escapeLF.replacement=" "
    escapeLF.replacement="[LF]"
    escapeLF.replacement=""

## Input usage

    input(type="imfile"
          File="/var/log/example.log"
          Tag="example"
          escapeLF="on" escapeLF.replacement="[LF]")

## See also

See also imfile: Text File 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.