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
Post a Comment