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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content