# IgnoreNonValidStatefile

Ignores corrupt state files and restarts reading from the beginning.

This parameter applies to imjournal: Systemd Journal Input Module.

Name:

  IgnoreNonValidStatefile

Scope:

  module

Type:

  boolean

Default:

  module=on

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

When a corrupted state file is encountered, the module discards it and continues reading from the start of the journal (or from the end if `IgnorePreviousMessages` is enabled). A new valid state file is written after the next state persistence or shutdown.

## Module usage

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

## Notes

- Historic documentation called this a `binary` option; it is boolean.

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