I need to monitor some large noisy log files (500m/day) from a Java application (log4j). Right now I manually look at the files, grep for "ERROR" and so on. However it should be possible for a tool to spot repeating patterns in the file, count them and provide drill down for the details of individual entries. Anyone know of such a tool? A text or Web based UI would be nice.
|
I've heard of people applying Bayesian filtering on log files to spot interesting stuff versus routine log entries. They used spam filters, where the routine uninteresting entries were considered "good" while the unusual ones were considered as "spam" and using that coloring they were able to shift through. It sounds a lot like machine learning stuff to me, but then again I've not seen it in action, only heard of it over beers. |
|||||||||
|
|
Splunk works wonders for this sort of stuff. I use it internally to gather all the logs and do quick searches via its excellent browser-based interface. |
|||
|
|
syslog-ng has a patterndb named feature. You can make patterns and match log entries to them in real time then send those entries to separate logfiles. |
|||
|
|
|
While looking into syslog-ng and patterndb (+1 to that answer, above), I encountered a web-based tool called ELSA: http://code.google.com/p/enterprise-log-search-and-archive/. It's F/OSS in perl, with a web interface, and supposed to be really fast. I haven't tried it yet, but once I'm done filtering using patterndb, I'll be trying ELSA. |
|||
|
|
|
Try out petit. |
|||
|
|
|
If you are using debian/squeeze on your server, have a look at log2mail: http://packages.debian.org/squeeze/log2mail |
|||
|
|

perl. – John Gardeniers Dec 19 '11 at 9:38