aspose file tools*
The moose likes Other Open Source Projects and the fly likes Extract Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Extract "exception type" v/s "occurrences" from log files" Watch "Extract "exception type" v/s "occurrences" from log files" New topic
Author

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

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
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.


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Extract "exception type" v/s "occurrences" from log files