reopenOnTruncate

Experimental: reopen the input file if it was truncated without changing its inode.

This parameter applies to imfile: Text File Input Module.

Name:

reopenOnTruncate

Scope:

input

Type:

boolean

Default:

off

Required?:

no

Introduced:

at least 8.x, possibly earlier

Description

When activated, tells rsyslog to reopen the input file if it was truncated (the inode is unchanged but the file size on disk is smaller than the current offset in memory). This feature is experimental.

Input usage

input(type="imfile" reopenOnTruncate="on")

Notes

  • Legacy documentation used the term binary for the type. It is treated as boolean.

  • This parameter is experimental and may change.

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.