PersistStateInterval

Saves the journal cursor after every N messages.

This parameter applies to imjournal: Systemd Journal Input Module.

Name:

PersistStateInterval

Scope:

module

Type:

integer

Default:

module=10

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Defines how often the module writes its position in the journal to the state file. The cursor is saved after each PersistStateInterval messages so rsyslog resumes from the last processed entry on restart.

A value of 0 or below disables periodic persisting. The cursor is then written to the state file only when imjournal shuts down, so after an unclean termination rsyslog may re-read entries that were processed after the last clean shutdown. This parameter has no effect unless StateFile is set.

Module usage

module(load="imjournal" PersistStateInterval="...")

Legacy names (for reference)

  • $imjournalPersistStateInterval — maps to PersistStateInterval (status: legacy)

See also

See also imjournal: Systemd Journal 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.