How to View Live Tomcat Logs/Output On Linux?
Published in
1 min readApr 25, 2012
When you run tomcat on linux with startup.sh shell script, unlike windows console, you won’t see complete logs. You will only see this
But , almost every time, you will be required to see the logs. Tomcat saves its logs in a file “catalina.out” under tomcat_installation_dir/logs directory. There are two ways that you can view logs
- Just got to your tomcat installation directory and then go into logs directory
- # cd /tomcat_installation_dir/logs
- Then issue the following command to view the logs
- # vi catalina.out
- You can view the logs now, but they are not live. If they are changed you have to get out of editor and open the logs again
- Second way is more convenient and its live. Again make sur your are in the tomcat logs directory and issue the following command
- #tail -f catalina.out
- Now see the tomcat runtime logs. Example