Skip to main content

Posts

Showing posts from September, 2017

How to track java Exceptions in Tomcat Log

We have monitoring large java application logs (Ex - Hotel Directory ) , there are many logs entry in our log file and can not figure out Java Exceptions by looking at catalina.out log file. Using with tail and grep command in Linux, we can track Java Exception, This is very helpful to us Track exception in testing and production environment. In Tomcat tail -f catalina.out | grep -P "(WARN|ERROR|^\tat |Exception|^Caused by: |\t... \d+ more)" In Any Java Application Logfile tail -f logfile | grep -P "(WARN|ERROR|^\tat |Exception|^Caused by: |\t... \d+ more)"