Skip to content

New Configuration Format for Red Hat 9+ #320

@ymatheus95

Description

@ymatheus95

Starting from version 9 of Red Hat operating systems, the configurations in the rsyslog.conf file have changed. Currently, we are using the module, and it works well for systems <9. It appears to continue functioning in versions 9+, but it generates a high number of errors such as:

imjournal: open() failed for path: '/var/lib/rsyslog/imjournal.state.tmp': Operation not permitted [v8.2310.0-4.el9 try https://www.rsyslog.com/e/2433]

In one case observed at our company, this error appeared more than 900,000 times in the system log file.

The solution provided by Red Hat is to modify how the imjournal module is called, as shown in the following example:

module(load="imjournal"             # provides access to the systemd journal
       UsePid="system"              # PID number is retrieved as the ID of the process the journal entry originates from
       FileCreateMode="0644"        # Set the access permissions for the state file
       StateFile="imjournal.state") # File to store the position in the journal

Reference: https://access.redhat.com/solutions/7070860

Would it be possible to add a fix for this issue?

Thank you in advance for your attention and support. I am available for any questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions