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

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

List instances with Name, Public IP, Platform and Status

AWS Command line Tasks : Create EC2 instance and EC2 instance with 500GB root volume.