You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by David Smiley <DS...@mitre.org> on 2007/03/15 04:44:46 UTC

Enhancements to Chainsaw

Greetings.  I've been a user of log4j for quite some time and only recently
have been exposed to Chainsaw.  At work ( http://www.mitre.org MITRE ) I've
been tasked to come up with a log viewer (for in-house use) that has a set
of features that are relatively close to what Chainsaw has.  Instead of
re-inventing the wheel, I'm going to enhance Chainsaw.  I don't think any of
the enhancements would require any drastic refactoring... but I have not
fully absorbed the source yet.  Assuming MITRE approves release of my work
to open-source (which I think they will; but I have to get through some red
tape first), it would be awesome if the community would accept any of my
contributions.  The enhancements I am about to get started on are roughly as
follows:

1. Via XSLT, support importing of log-files that are in other XML formats. 
Presently, there is some class file, I forget what it's named, called
something like LogFileXMLReceiver.  I'd either enhance that to give it
flexibility, or make another similar receiver.

2. Add a preference to offset the time values from a receiver by some fixed
offset.

3. Add the ability (with associated user-preferences) to specify additional
columns to display in the viewer, based on the "properties" data in a log
event.

4. Allow a log viewer to act as a receiver for another log viewer.  And,
allow a log viewer to receive multiple receivers.  Presently, I have no idea
how much flexibility Chainsaw has in this regard.  It appears that there's
one viewer per receiver right now.  The result of what I want here is the
ability to filter and merge multiple log event streams.

5. The ability to filter based on the correlation of multiple log events by
user criteria.  Presently, events can only be filtered or highlighted on an
event-by-event basis.  An example is saying that I want to see all log
events that are within 5 seconds of another log event that has some
particular field in common.  I pulled that out of my ass but I hope I am
getting the point across.

I know that chainsaw seems to be highly oriented around live monitoring as
events come in from remote machines.  In my case, I am only concerned with
analyzing pre-existing log-files.

In the process, I am likely to clean up many of the source files I get my
hands on; I'm a stickler for code quality.

Thoughts?

~ David Smiley
   of The MITRE Corporation
-- 
View this message in context: http://www.nabble.com/Enhancements-to-Chainsaw-tf3406244.html#a9488085
Sent from the Log4j - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: Enhancements to Chainsaw

Posted by Paul Smith <ps...@aconex.com>.
On 15/03/2007, at 2:44 PM, David Smiley wrote:

>
> Greetings.  I've been a user of log4j for quite some time and only  
> recently
> have been exposed to Chainsaw.  At work ( http://www.mitre.org  
> MITRE ) I've
> been tasked to come up with a log viewer (for in-house use) that  
> has a set
> of features that are relatively close to what Chainsaw has.   
> Instead of
> re-inventing the wheel, I'm going to enhance Chainsaw.  I don't  
> think any of
> the enhancements would require any drastic refactoring... but I  
> have not
> fully absorbed the source yet.  Assuming MITRE approves release of  
> my work
> to open-source (which I think they will; but I have to get through  
> some red
> tape first), it would be awesome if the community would accept any  
> of my
> contributions.  The enhancements I am about to get started on are  
> roughly as
> follows:
>

I personally would love to see community inspired enhancements.  I  
hope MITRE will say yes.

>
> 4. Allow a log viewer to act as a receiver for another log viewer.   
> And,
> allow a log viewer to receive multiple receivers.  Presently, I  
> have no idea
> how much flexibility Chainsaw has in this regard.  It appears that  
> there's
> one viewer per receiver right now.  The result of what I want here  
> is the
> ability to filter and merge multiple log event streams.
>

There is a handler that 'routes' each logging event to a view, based  
on some configuration.  So multiple receivers could still be routed  
to one view.  Right now the configuration on how that route happens  
is probably not flexible enough.  But should be straight forward.

> 5. The ability to filter based on the correlation of multiple log  
> events by
> user criteria.  Presently, events can only be filtered or  
> highlighted on an
> event-by-event basis.  An example is saying that I want to see all log
> events that are within 5 seconds of another log event that has some
> particular field in common.  I pulled that out of my ass but I hope  
> I am
> getting the point across.
>
Context logging is important.  I started experimenting with using  
Apache Lucene to do further context analysis but got stuck.  Indexing  
a huge log file is not a snappy operation and it seemed impractical.   
Mind you that was over 1 year ago, I know Lucene 2.0 is probably  
quicker and may be worth investigating again.


> I know that chainsaw seems to be highly oriented around live  
> monitoring as
> events come in from remote machines.  In my case, I am only  
> concerned with
> analyzing pre-existing log-files.
>
> In the process, I am likely to clean up many of the source files I  
> get my
> hands on; I'm a stickler for code quality.
>

Go for it, I'll support you by reviewing and applying patches etc.   
Right now I'm managing the signing and deployment of the web-start  
version too.

I wish I had more time to get my hands dirty with you!

Paul Smith

Re: Enhancements to Chainsaw

Posted by Jess Holle <je...@ptc.com>.
David Smiley wrote:
> Greetings.  I've been a user of log4j for quite some time and only recently
> have been exposed to Chainsaw.  At work ( http://www.mitre.org MITRE ) I've
> been tasked to come up with a log viewer (for in-house use) that has a set
> of features that are relatively close to what Chainsaw has.  Instead of
> re-inventing the wheel, I'm going to enhance Chainsaw.  I don't think any of
> the enhancements would require any drastic refactoring... but I have not
> fully absorbed the source yet.  Assuming MITRE approves release of my work
> to open-source (which I think they will; but I have to get through some red
> tape first), it would be awesome if the community would accept any of my
> contributions.  The enhancements I am about to get started on are roughly as
> follows:
>
> 1. Via XSLT, support importing of log-files that are in other XML formats. 
> Presently, there is some class file, I forget what it's named, called
> something like LogFileXMLReceiver.  I'd either enhance that to give it
> flexibility, or make another similar receiver.
>   
While I'm normally a big XSLT fan, I'd venture that this approach won't 
scale well to logs of large size since XSLT implementations are 
generally based on some form of DOM.

Now if you have something that grabs in chunks of log elements, wraps 
them in a root element, and transforms this chunk, that would be 
alright.  [Also the commercial version of Saxon supposedly streams where 
possible (it is simply not possible if you use some XSLT functionality).]

--
Jess Holle

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org