How to stop logging into /var/log/messages for a message with local6 as a facility
Issue
I have a httpd configuration to send messages into rsyslogd with logger command with local6 facility and err log level.
And, I added the following configuration into /etc/rsyslog.conf to store the logs into /var/log/myhttpd.log.
local6.* /var/log/myhttpd.log
But, I found a problem with /var/log/messages filled with many httpd messages.
How to stop logging into /var/log/messages about the httpd messages with local6 facility?
Environment
Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
