• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic