statefile.directory#
Sets a dedicated directory for imfile state files.
This parameter applies to imfile: Text File Input Module.
- Name:
statefile.directory
- Scope:
module
- Type:
string
- Default:
module=global(workDirectory) value
- Required?:
no
- Introduced:
8.1905.0
Description#
Permits specification of a dedicated directory for the storage of imfile state
files. An absolute path name should be specified (e.g., /var/rsyslog/imfilestate).
If not specified the global workDirectory setting is used.
Important: The directory must exist before rsyslog is started. rsyslog needs write permissions to work correctly. This may also require SELinux definitions or similar permissions in other security systems.
Module usage#
module(load="imfile" statefile.directory="/var/rsyslog/imfilestate")
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.