How can an application in RHEL7 write logs directly to local/remote rsyslog, bypassing journald?

Solution Verified - Updated -

Issue

  • We have an application that writes a high volume of logs via standard syslog() calls. We don't want or need these messages to be captured by journald. How can we avoid that?

  • Apache httpd and some other production applications are generating tons of logs that we need to pass on to remote servers. Currently all these applications (including httpd) use the logger command which gets the messages to rsyslog which then does some filtering and then forwards them to remote hosts; however, the messages go through journald first and we don't need this. How can we take journald out of the picture for specific applications?

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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.