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 1139734 - logger does not work with rsyslog
Summary: logger does not work with rsyslog
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rsyslog
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Heinrich
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-09 14:11 UTC by Eric Rich
Modified: 2018-12-06 18:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-10 15:51:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Article) 1188603 0 None None None Never

Description Eric Rich 2014-09-09 14:11:43 UTC
Description of problem:

Can not use logger or rsyslog logging frame work from with in a docker image. 

The following is suspected to be the issue: 

socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = -1 ENOENT (No such file or directory)

Version-Release number of selected component (if applicable): 0.11 from RHEL 7 

How reproducible: VERY

Steps to Reproduce:
1. docker run -it --rm rhel /bin/bash
2. yum -y install rsyslog
3. /usr/sbin/rsyslogd
4. logger "this is a test"

Actual results:
No log message appear in /var/log/messages

Expected results:
"this is a test" should appear in the log

Additional info:

Comment 2 Daniel Walsh 2014-09-09 14:25:31 UTC
Did rsyslogd not create the device?

Comment 3 Eric Rich 2014-09-09 14:37:58 UTC
(In reply to Daniel Walsh from comment #2)
> Did rsyslogd not create the device?

Nope, and when I ran an strace on rsyslog I did not see it fail in crating the device / socket.

Comment 4 Daniel Walsh 2014-09-10 12:08:45 UTC
After playing around with this for a while, I realized that rsyslog no longer listens on /dev/log by default it talks to journald, but journald is not running in your container, so you need to figure out how to get rsyslog to listen on /dev/log again.

Rsyslog guys how do I configure rsyslog to turn off journald support and back on /dev/log support?

Comment 5 Daniel Walsh 2014-09-10 14:23:26 UTC
Michal Schmidt says

In /etc/rsyslog.conf remove $ModLoad imjournal, set $OmitLocalLogging
to off and make sure $ModLoad imuxsock is present.

Comment 6 Tomas Heinrich 2014-09-10 15:06:10 UTC
(In reply to Daniel Walsh from comment #5)
> Michal Schmidt says
> 
> In /etc/rsyslog.conf remove $ModLoad imjournal, set $OmitLocalLogging
> to off and make sure $ModLoad imuxsock is present.

Also comment out:
$IMJournalStateFile imjournal.state

That should be about it.

This is a misconfiguration, not a bug.


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