rsyslog log contains the messages "imjournal: sd_journal_next() failed: Bad message" and "trying to recover from journal error". After these messages, rsyslog repeats old logs.

Solution Verified - Updated -

Issue

  • rsyslog log contains imjournal: sd_journal_next() failed: Bad message and trying to recover from journal error. And then, rsyslog repeats old logs after the message.

    rsyslogd[3857]: imjournal: journal files changed, reloading...  [v8.2102.0-5.el8 try https://www.rsyslog.com/e/0 ]
     :
    rsyslogd[3857]: imjournal: journal files changed, reloading...  [v8.2102.0-5.el8 try https://www.rsyslog.com/e/0 ]
    rsyslogd[3857]: imjournal: journal files changed, reloading...  [v8.2102.0-5.el8 try https://www.rsyslog.com/e/0 ]
    rsyslogd[3857]: imjournal: sd_journal_next() failed: Bad message [v8.2102.0-5.el8]
    rsyslogd[3857]: imjournal: sd_journal_next() failed: Bad message [v8.2102.0-5.el8]
    rsyslogd[3857]: imjournal: trying to recover from journal error [v8.2102.0-5.el8 try https://www.rsyslog.com/e/0 ]
     :
    (old logs) 
     :
    

Environment

  • Red Hat Enterprise Linux (RHEL) 7 and 8
    • rsyslog
    • systemd-journald

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content