Fixed – Tomcat not generating catalina.out log on Amazon Linux 2 | vetechno

Find the below command to fix Tomcat not generating catalina.out log on Amazon Linux 2

Step1. Create a file in location /etc/rsyslog.d/tomcat.conf

Step2. put below command into the tomcat.conf

programname, contains, "server" /var/log/tomcat/catalina.out
programname, contains, "server" ~

Step3. Now restart the rsyslog service

systemctl restart rsyslog.service

Now check the catalina.out log file 

Let us know if you are still facing an issue in the comment box.

Leave a Reply

Your email address will not be published.