How to send Tomcat access logs to a remote or local syslog server?

Solution Verified - Updated -

Issue

  • How to send Tomcat access logs to a remote or local syslog server?
  • Is it possible to configure log4j for tomcat access log so that it can be use to send access_log to remote or local syslog server?

Environment

  • Red Hat Enterprise Linux (RHEL) 5,6,7
    • tomcat5
    • tomcat6
    • tomcat7
  • Red Hat JBoss Web Server (JWS) 2, 3, 3.1
    • tomcat6
    • tomcat7
    • tomcat8

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