[Pulp-list] Pulp Logging Documentation for rsyslogd Incorrect

Trey Dockendorf treydock at gmail.com
Fri Jan 9 01:48:59 UTC 2015


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.

- Trey

On Wed, Jan 7, 2015 at 4:49 PM, <ben.stanley at exemail.com.au> wrote:

> > Ben,
> >
> > Here is info about where pulp logs things:
> >
> https://pulp-user-guide.readthedocs.org/en/latest/troubleshooting.html#logging
> >
> 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 .
>
>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20150108/eadb79ca/attachment.htm>


More information about the Pulp-list mailing list