How to stop writing local6 or other custom facility logs into `/var/log/messages`.
Issue
-
httpdlogs are printing in/var/log/messagesinstead of/var/log/myhttpd.logwhile using local6 facility in httpd configuration. -
Logs are being written to
/var/log/messagesinstead of/var/log/audit/audit.logwhen audit plugin is configured with LOG_LOCAL6. -
High volume of log entries in the
/var/log/messagesfilling up/varand the file system is getting 100% occupied due to this issue.
Environment
- Red Hat Enterprise Linux (All versions)
- rsyslog
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.