How to save Apache Tomcat service log messages in RHEL to a file

Solution Verified - Updated -

Issue

  • In RHEL, the RHEL tomcat package doesn't save all stderr and stdout to catalina.out; instead, it all goes to the systemd journal and /var/log/messages. How can this be captured to a specific file instead?

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Enterprise Linux 8.x
  • Red Hat Enterprise Linux 9.x
  • Apache Tomcat

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