Sometimes it is located in different places. It depends on the server.
You can use find
to find it:
find / -name catalina.out
If you encounter permission issues, add sudo
to the command:
sudo find / -name catalina.out
That's all.
I hope this helps
cd /usr/local/tomcat/logs
tail -f catalina.out
I found logs of Apache Tomcat/9.0.33 version in below path:
In tail -f /opt/tomcat/logs/catalina.out
Thanks.
Just be aware also that catalina.out can be renamed - it can be set in /bin/catalina.sh with the CATALINA_OUT environment variable.
I found mine at
~/apache-tomcat-7.0.25/logs/catalina.out
locate catalina.out
and find out where is your catalina out. Because it depends.
If there is several, look at their sizes: that with size 0 are not what you want.
I have used this command to check the logs and 10000
is used to show the number of lines
sudo tail -10000f catalina.out
If you type in the command line
catalina
you will see some message about it, look for this:
CATALINA_BASE: /usr/local/Cellar/tomcat/9.0.27/libexec
cd /usr/local/Cellar/tomcat/9.0.27/libexec/logs
tail -f catalina.out
You will then see the live logs.
NOTE: My Tomcat installation was done via Homebrew
If you are in the home directory first move to apache tomcat use below command
cd apache-tomcat/
then move to logs
cd logs/
then open the catelina.out use the below command
tail -f catalina.out
It works for me on Ubuntu...
cd var/lib/tomcat7
sudo nano logs/catalina.out
Just logged in to the server and type below command
locate catalina.out
It will show all the locations where catalina
file exist within this server.
Try using this:
sudo tail -f /opt/tomcat/logs/catalina.out
Tomcat 7 Ubuntu Server 12.04 LTS:
tail -f /var/log/tomcat7/catalina.out
Source: Stackoverflow.com