This discussion is archived
1 Reply Latest reply: Oct 9, 2013 7:40 AM by rp0428 RSS

Parse a complex log file stacktrace

800839 Newbie
Currently Being Moderated


I have a complex log file from which I need to retrieve only the stack trace.
Here I am not usng a regex, as the log file is so complex and providing a keyword
for regex itself is tough. Hence I was thinking about the below options:-

1) Write only the log stacktrace in a separate .log file
2) Add a opening and closing tags only for log stacktrace so that it can be easily parsed.

Please provide your suggestion on the same. If i have to implement the first option how i can go about it?
what changes i need to make to log4j xml file? Similarly for the second option how we can do it?
Please clarify.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points