imjournal state file gets corrupt when unexpected reboot or system shutdown happened
Issue
- Old log appeared in the
/var/log/messageswhen an unexpected reboot happened on my system. - The same log message happened again after resetting the server even though the log messages rotated.
- It seems that the
imjournalstate file got corrupt. - Following log message appeared when starting the rsyslog service.
Dec 12 01:24:56 example rsyslogd: imjournal: fscanf on state file `/var/lib/rsyslog/imjournal.state' failed [v8.24.0-34.el7 try http://www.rsyslog.com/e/2027 ]
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- rsyslog
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.