{"id":8,"date":"2017-10-07T10:02:00","date_gmt":"2017-10-07T10:02:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/syslog-error-imjournal-fscanf-on-state"},"modified":"2017-10-07T17:35:05","modified_gmt":"2017-10-07T17:35:05","slug":"error-imjournal-fscanf-on-state","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/syslog\/error-imjournal-fscanf-on-state","title":{"rendered":"Syslog Error: imjournal: fscanf on state file `\/var\/lib\/rsyslog\/imjournal.state&#8217; failed"},"content":{"rendered":"<p>Syslog Stopped working and not printing the message logs. Error Log Shows the message : imjournal: fscanf on state file\u00a0imjournal.state<\/p>\n<h3 style=\"text-align: left;\"><u>Error<\/u><\/h3>\n<p><b>#systemctl status rsyslog.service <\/b>shows the following error<\/p>\n<p>imjournal: fscanf on state file `\/var\/lib\/rsyslog\/imjournal.state&#8217; failed \u00a0[v8.23.0 try http:\/\/www.rsyslog.com\/e\/2027 ]<\/p>\n<h3 style=\"text-align: left;\"><u>Reason<\/u><\/h3>\n<p>File <b>\/var\/lib\/rsyslog\/imjournal.state<\/b> got corrupted due to bad I\/O.<\/p>\n<h3 style=\"text-align: left;\"><u>Solution:<\/u><\/h3>\n<p>Remove\u00a0<b>\/var\/lib\/rsyslog\/imjournal.state <\/b>file and restart the rsyslog service<\/p>\n<p><b>#rm\u00a0\/var\/lib\/rsyslog\/imjournal.state<\/b><br \/>\n<b>#systemctl restart \u00a0rsyslog.service<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syslog Stopped working and not printing the message logs. Error Log Shows the message : imjournal: fscanf on state file\u00a0imjournal.state Error #systemctl status rsyslog.service shows the following error imjournal: fscanf&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/syslog\/error-imjournal-fscanf-on-state\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/8"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":395,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/8\/revisions\/395"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}