RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1649491 - After a log rotation, rsyslog fails to reliably detect change in inode
Summary: After a log rotation, rsyslog fails to reliably detect change in inode
Keywords:
Status: CLOSED DUPLICATE of bug 1649250
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rsyslog
Version: 7.6
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jiří Vymazal
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-13 17:43 UTC by Doug Wussler
Modified: 2018-11-14 08:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-14 08:00:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Doug Wussler 2018-11-13 17:43:49 UTC
Description of problem:  After applying the recent update to RHEL 7.6, rsyslog was upgraded from 8.24.0-16.el7_5.4 to 8.24.0-34.el7.  This updated version fails to reliably detect a change in an inode when a log file is rotated.  This is the error I find in /var/log/messages:

rsyslogd: imfile: internal error? inotify provided watch descriptor 4 which we could not find in our tables

The repercussion is that rsyslog is then not able to take input from "imfile" source that was rotated.

This appears to be fixed by the RSYSLOG team. See https://github.com/rsyslog/rsyslog/pull/3051/commits/f85ef7aabcec84497a5eaf9670616b3402c79d9c

It is possible that the defective code existed in the previous version of rsyslog but was never instantiated, or perhaps some other part of the 7.6 update exposed this defect in rsyslog.  But in any case, after moving from 7.5 to 7.6 my log transfers managed by rsyslog no longer work because of this problem.  Kind of a big deal.  Can anything be done in a timely manner or do I need to compile from current source?


Version-Release number of selected component (if applicable):
rsyslog.x86_64                      8.24.0-34.el7

How reproducible:
In /etc/rsyslog.conf, use "imfile" as an input source for publishing log records to a remote server.  Then run a log rotation on those same sources.

e.g.
module(load="imfile"     # This applies to all input text files
       mode="inotify")

template(name="my-template"
         type="string"
         string="<150>%hostname% %rawmsg-after-pri%")

ruleset(name="Forward-to-Splunk"
        queue.type="Direct") {
            action(type="omfwd"
                   template="my-template"
                   target="111.222.333.444"
                   port="514"
                   protocol="udp")
}

input(type="imfile"
      File="/var/log/logdir/myfile.log"
      Tag="xyz"
      Severity="Info"
      Facility="local2"
      Ruleset="Forward-to-Splunk")


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jiří Vymazal 2018-11-14 08:00:56 UTC
Doug, thanks for reporting the problem, however we are already tracking this specific issue, please follow it at bug 1649250

Thanks

*** This bug has been marked as a duplicate of bug 1649250 ***


Note You need to log in before you can comment on or make changes to this bug.