<div dir="ltr">I've been using this on EL6<div><br></div><div><div>:programname, isequal, "pulp" -/var/log/pulp.log</div><div>& ~</div></div><div><br></div><div>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.</div><div><br></div><div>- Trey</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 7, 2015 at 4:49 PM,  <span dir="ltr"><<a href="mailto:ben.stanley@exemail.com.au" target="_blank">ben.stanley@exemail.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Ben,<br>
><br>
> Here is info about where pulp logs things:<br>
> <a href="https://pulp-user-guide.readthedocs.org/en/latest/troubleshooting.html#logging" target="_blank">https://pulp-user-guide.readthedocs.org/en/latest/troubleshooting.html#logging</a><br>
><br>
The documentation there regarding rsyslogd is incorrect (at least for RHEL7).<br>
<br>
Configuring the log with the line<br>
<br>
pulp.* /var/log/pulp.log<br>
<br>
causes the following error when rsyslogd starts up:<br>
rsyslogd-<pid>: unknown facility name "pulp"<br>
<br>
rsyslogd has no log facility called pulp, so it can't be configured in the<br>
manner described in the logging section of the troubleshooting page. The<br>
list of facilities is fixed at compile time. Filters must be used to<br>
select the messages instead.<br>
<br>
The documentation for filters in rsyslogd is located here:<br>
<a href="http://www.rsyslog.com/doc/rsyslog_conf_filter.html" target="_blank">http://www.rsyslog.com/doc/rsyslog_conf_filter.html</a><br>
<br>
The RainerScript filters allow you to select a sub-set of messages to put<br>
into a particular file like this:<br>
<br>
if $programname == 'pulp' then {<br>
   action(type="omfile" file="/var/log/pulp.log")<br>
}<br>
<br>
However, I don't know how to exclude pulp messages from /var/log/messages .<br>
<br>
<br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</blockquote></div><br></div>