persistStateAfterSubmission

Persists state after imfile flushes submissions at the end of a read pass.

This parameter applies to imfile: Text File Input Module.

Name:

persistStateAfterSubmission

Scope:

input

Type:

boolean

Default:

off

Required?:

no

Introduced:

8.2006.0

Description

When switched on, imfile writes state after flushing its pending messages at the end of a file read pass. The write follows imfile’s submission to the processing queue; it does not confirm downstream processing or durable output delivery. This enhances robustness against unclean shutdowns, but may cause frequent state file writes and degrade performance, depending on overall rsyslog configuration.

This setting is independent of PersistStateInterval: it can write state before the configured line count is reached. It does not turn PersistStateInterval into a time interval.

Input usage

input(type="imfile"
      File="/var/log/example.log"
      Tag="example"
      persistStateAfterSubmission="on")

Notes

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

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–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.