# StateFile

Specifies path to the state file holding the journal cursor.

This parameter applies to imjournal: Systemd Journal Input Module.

Name:

  StateFile

Scope:

  module

Type:

  word

Default:

  module=none

Required?:

  no

Introduced:

  at least 5.x, possibly earlier

## Description

Defines where the module stores its persistent position in the journal. A relative path is created inside rsyslog’s working directory; an absolute path is used as is.

## Module usage

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

### Legacy names (for reference)

- $imjournalStateFile — maps to StateFile (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–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.