How to extract java stack trace log from tomcat log file?

  • catalina.out - Tomcat output file.
  • ERROR - The keyword displayed in the log file containing the java stack trace.

    sed -n '/ERROR/p; //,/^[0-9]\{4\}-/ {/^[0-9]\{4\}-/!p}' catalina.out
 Ref : https://www.unix.com/shell-programming-and-scripting/277433-using-grep-finding-stacktraces.html 

Comments

Popular posts from this blog

Logical volume vmxxxx_img is used by another device - Error on LVM removal

Open VZ cheat Sheet

Cheat sheet for Hardware RAID health check - Megaraid, Adaptec, 3wareraid and HPraid.