Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extract "exception type" v/s "occurrences" from log files

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

We have to monitor application's log files for what exception types are occurring and the how many times they are occurring, on a daily basis.
Currently, doing it manually -

1. use a unix script based on the "grep -i" command on .gz log file and extract the lines with [ERROR] in a text file.
2. manually browse/scroll the text file and note down the exception types/patterns
3. use a unix script based on "grep -c" command and cound the occurrence for each pattern in all the log files
4. Tabulate the information from above steps in an XL sheet and generate pie chart.

Are there any open source tools which will let me count the exception types given the log files as input? I searched around and got some tools but did not quite get what i was looking for.

Would like to hear out from experts here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic