Bug 1180163 - Users are reporting that our rsyslog config example does not work
Summary: Users are reporting that our rsyslog config example does not work
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: documentation
Version: 2.4.3
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-08 14:39 UTC by Randy Barlow
Modified: 2015-02-28 23:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 23:18:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 654 0 None None None Never

Description Randy Barlow 2015-01-08 14:39:58 UTC
Document URL: 
https://pulp-user-guide.readthedocs.org/en/latest/troubleshooting.html#logging

Section Number and Name: 
Logging

Describe the issue: 
The following is an e-mail from Ben Stanley on Pulp List:

The documentation there regarding rsyslogd is incorrect (at least for RHEL7).

Configuring the log with the line

pulp.* /var/log/pulp.log

causes the following error when rsyslogd starts up:
rsyslogd-<pid>: unknown facility name "pulp"

rsyslogd has no log facility called pulp, so it can't be configured in the
manner described in the logging section of the troubleshooting page. The
list of facilities is fixed at compile time. Filters must be used to
select the messages instead.

The documentation for filters in rsyslogd is located here:
http://www.rsyslog.com/doc/rsyslog_conf_filter.html

The RainerScript filters allow you to select a sub-set of messages to put
into a particular file like this:

if $programname == 'pulp' then {
   action(type="omfile" file="/var/log/pulp.log")
}

However, I don't know how to exclude pulp messages from /var/log/messages .

Suggestions for improvement: 
Make sure our logging instructions are either accurate, or link to rsyslog docs that discuss how to filter.

Additional information:

Comment 1 Randy Barlow 2015-01-09 15:17:35 UTC
From Trey Dockendorf on pulp-list:

"I've been using this on EL6

:programname, isequal, "pulp" -/var/log/pulp.log
& ~

I think as long as that comes before the line that sets the /var/log/messages logging then the "& ~" will discard the messages and keep them from making it to /var/log/messages."

Comment 2 Brian Bouterse 2015-02-28 23:18:19 UTC
Moved to https://pulp.plan.io/issues/654


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