How do I log Tomcat output to a remote syslog server?

Updated -

Steps to set up Tomcat to log to syslog via log4j

By default, Tomcat uses the java logging api which does not have a syslog appender. The java logging api will need to be replaced with log4j which does contain an appender to output to syslog.

  1. cd to the /var/lib/...

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.