How to save Apache Tomcat service log messages in RHEL to a file
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.