667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 17 Messages: 17 Messages: 17 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Open Source Log Analysis tool

Posted by: Regunath B on April 01, 2008 DIGG
MindTree Insight is a log analysis tool inspired by the Log4j Chainsaw. It is now an OpenSource project on SourceForge and is available at : http://sourceforge.net/projects/mindtreeinsight

The download of the latest release is available at: http://sourceforge.net/project/showfiles.php?group_id=212019&package_id=254922

This blog entry describes the need for such a tool and its background : http://regumindtrail.wordpress.com/2007/02/06/the-spot-the-log-entry-contest/
In brief it provides the following:
  • Provide visual analysis of any pattern based log files
  • Analyze logs from remote servers over (S)Ftp and Http.
  • Supports tailing of local files and a plug-in for Eclipse
  • Provides summary and detailed view of the log event
  • Supports “no-mutating” analysis of the data set - such as search, sort.
  • Supports “mutating” analysis of data set - via progressive filtering
  • Helps to locate the “context” of an event i.e snap shot of log entries around a specific log entry.
  • Optimized for performance and footprint size
    • Loads 1000 entries in around 375 ms
    • VM size between 45 to 60MB even after loading 110 000 entries

Threaded replies

·  Open Source Log Analysis tool by Regunath B on Tue Apr 01 05:49:56 EDT 2008
  ·  Very Windows friendly! by Tracy Snell on Tue Apr 01 11:39:59 EDT 2008
    ·  Re: Very Windows friendly! by Bindul Bhowmik on Tue Apr 01 14:26:36 EDT 2008
      ·  contributions weren't welcome to chainsaw?? by Gary P on Tue Apr 01 16:58:11 EDT 2008
        ·  Re: contributions weren't welcome to chainsaw?? by Regunath B on Wed Apr 02 00:06:50 EDT 2008
    ·  Re: Very Windows friendly! by Regunath B on Wed Apr 02 00:19:15 EDT 2008
    ·  Re: Very Windows friendly! by Regunath B on Wed Apr 02 00:20:15 EDT 2008
    ·  Re: Very Windows friendly! by Regunath B on Thu Apr 10 10:28:32 EDT 2008
  ·  Re: Open Source Log Analysis tool by Rajesh Balamohan on Tue Apr 01 11:53:24 EDT 2008
    ·  Re: Open Source Log Analysis tool by email kuppai on Tue Apr 01 12:51:52 EDT 2008
    ·  Re: Open Source Log Analysis tool by Regunath B on Wed Apr 02 00:11:22 EDT 2008
      ·  Re: Open Source Log Analysis tool by Rajesh Balamohan on Wed Apr 02 04:22:39 EDT 2008
  ·  A first shot by Casual Visitor on Tue Apr 01 15:29:16 EDT 2008
  ·  log4j 1.3?? by Sebastian Otaegui on Wed Apr 02 16:08:27 EDT 2008
    ·  Re: log4j 1.3?? by Regunath B on Thu Apr 03 07:49:13 EDT 2008
  ·  Broken by Uros Mesaric on Thu Apr 03 04:40:21 EDT 2008
    ·  Re: Broken by Regunath B on Thu Apr 03 07:53:25 EDT 2008
      ·  Re: Broken by Bindul Bhowmik on Wed Apr 09 21:21:47 EDT 2008
  Message #249864 Post reply Post reply Post reply Go to top Go to top Go to top

Very Windows friendly!

Posted by: Tracy Snell on April 01, 2008 in response to Message #249830
Too bad I don't have Windows.

$> cat insight.sh
echo "Not yet implemented"


Nice!

  Message #249865 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Open Source Log Analysis tool

Posted by: Rajesh Balamohan on April 01, 2008 in response to Message #249830
It looks good. But I had some question after using the product.

1. What is that additional feature this tool gives, which "grep" tool provides in unix or cygwin?.

The above question is purely based on log analysis perspective. Some of the good features of the product include ftp, remote server etc.

  Message #249869 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Open Source Log Analysis tool

Posted by: email kuppai on April 01, 2008 in response to Message #249865
Hi

Tool gives a tabular view from a flat file system. i feel it should give much graphical view like google/analytics or some sort of basic reports to get value-added information.

thanks
ek

  Message #249874 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very Windows friendly!

Posted by: Bindul Bhowmik on April 01, 2008 in response to Message #249864
Do agree with the statement. However, Insight is an open source project, and any contributions are most welcome.

  Message #249881 Post reply Post reply Post reply Go to top Go to top Go to top

A first shot

Posted by: Casual Visitor on April 01, 2008 in response to Message #249830
Always got a "Specified log pattern doesn't match data" error until I removed almost all formatting. I prefer an interface like BareTail.

  Message #249884 Post reply Post reply Post reply Go to top Go to top Go to top

contributions weren't welcome to chainsaw??

Posted by: Gary P on April 01, 2008 in response to Message #249874
I always wonder why we have soooooo many Open Source Java projects that claim "It has features that the $$$ team found missing in %%%%" and then tell everyone who mentions a feature missing in their project that contributions are welcome.. Why didn't you add the features as contributions to Chainsaw and save us all the headache of yet another java project...

Just my two cents...

Gary

  Message #249898 Post reply Post reply Post reply Go to top Go to top Go to top

Re: contributions weren't welcome to chainsaw??

Posted by: Regunath B on April 02, 2008 in response to Message #249884
Gary,

Good point. Insight was developed as closed source initially in 2005. We did find some useful stuff in Chainsaw but then realized that we wanted Insight to be more than a log analyzer. FYI, we wanted to build JVM profiling into it as well which, well, never happened :)

  Message #249899 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Open Source Log Analysis tool

Posted by: Regunath B on April 02, 2008 in response to Message #249865
Rajesh,

Isn't the world dominated by point-and-click users ? :)
The ability to do progressive filtering, ability to locate the context of a log entry, searching on selective log entry fields, fileset definitions, remote browsing of 'nix servers, Eclipse plug-in, tailing of files e.t.c. are not possible using "grep" AFAIK.

  Message #249900 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very Windows friendly!

Posted by: Regunath B on April 02, 2008 in response to Message #249864
Tracy,

Good catch :) Its no excuse, but all of us here use Windows!

We have added a ticket for this at :

https://sourceforge.net/tracker/?func=detail&atid=1020095&aid=1931541&group_id=212019

In the meanwhile, you can maybe create a shell script out of the Windows .bat file contents provided below:
-------------------------------------------------------------
@echo off
rem ---------------------------------------------------------------------------
rem Startup Script for Insight
rem
rem Environment Variable Prequisites
rem
rem JAVA_HOME Must point to a valid Java 2 JRE or JDK directory with version 1.4.2 or later
rem
rem INSIGHT_HOME Must point to the directory where this shell was extracted to
rem ---------------------------------------------------------------------------

set TMP=c:\tmp
set JAVA_HOME=D:\WorkTools\j2sdk1.4.2_02
set INSIGHT_HOME=D:/projects/insight
set INSIGHT_JAR=@@@INSIGHT_JAR@@@

:checkJavaHome
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable has not been defined
goto end

:checkInsightHome
if not "%INSIGHT_HOME%" == "" goto gotInsightHome
echo The INSIGHT_HOME environment variable has not been defined
goto end

:gotJavaHome
if exist "%JAVA_HOME%\bin\java.exe" goto checkInsightHome
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program. Please set it to JRE or JDK version 1.4.2 or later
goto end

:gotInsightHome
if exist "%INSIGHT_HOME%\config\insight-preferences.xml" goto okHome
echo The INSIGHT_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program. Please set it to the folder where Insight archive was extracted
goto end

:okHome
set INSIGHT_CLASS_PATH=.;%INSIGHT_JAR%;%INSIGHT_HOME%/bin;%INSIGHT_HOME%/lib/looks-1.2.2.jar;%INSIGHT_HOME%/lib/jakarta-oro-2.0.6.jar;%INSIGHT_HOME%/lib/log4j-1.3alpha.jar;%INSIGHT_HOME%/lib/log4j-chainsaw-1.3alpha-3.jar;%INSIGHT_HOME%/lib/xercesImpl.jar;%INSIGHT_HOME%/lib/xml-apis.jar;%INSIGHT_HOME%/lib/xmlParserAPIs.jar;%INSIGHT_HOME%/lib/commons-logging.jar;%INSIGHT_HOME%/lib/j2ssh-core.jar;%INSIGHT_HOME%/lib/commons-httpclient-2.0.2.jar;%INSIGHT_HOME%/lib/commons-net-1.3.0.jar

%JAVA_HOME%\bin\java -classpath %INSIGHT_CLASS_PATH% -DINSIGHT_HOME=%INSIGHT_HOME% com.mindtree.insight.gui.Insight

:end
------------------------------------------------------------

  Message #249901 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very Windows friendly!

Posted by: Regunath B on April 02, 2008 in response to Message #249864
Tracy,

Good catch :) Its no excuse, but all of us here use Windows!

We have added a ticket for this at :

https://sourceforge.net/tracker/?func=detail&atid=1020095&aid=1931541&group_id=212019

In the meanwhile, you can maybe create a shell script out of the Windows .bat file contents provided below:
-------------------------------------------------------------
@echo off
rem ---------------------------------------------------------------------------
rem Startup Script for Insight
rem
rem Environment Variable Prequisites
rem
rem JAVA_HOME Must point to a valid Java 2 JRE or JDK directory with version 1.4.2 or later
rem
rem INSIGHT_HOME Must point to the directory where this shell was extracted to
rem ---------------------------------------------------------------------------

set TMP=c:\tmp
set JAVA_HOME=D:\WorkTools\j2sdk1.4.2_02
set INSIGHT_HOME=D:/projects/insight
set INSIGHT_JAR=@@@INSIGHT_JAR@@@

:checkJavaHome
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable has not been defined
goto end

:checkInsightHome
if not "%INSIGHT_HOME%" == "" goto gotInsightHome
echo The INSIGHT_HOME environment variable has not been defined
goto end

:gotJavaHome
if exist "%JAVA_HOME%\bin\java.exe" goto checkInsightHome
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program. Please set it to JRE or JDK version 1.4.2 or later
goto end

:gotInsightHome
if exist "%INSIGHT_HOME%\config\insight-preferences.xml" goto okHome
echo The INSIGHT_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program. Please set it to the folder where Insight archive was extracted
goto end

:okHome
set INSIGHT_CLASS_PATH=.;%INSIGHT_JAR%;%INSIGHT_HOME%/bin;%INSIGHT_HOME%/lib/looks-1.2.2.jar;%INSIGHT_HOME%/lib/jakarta-oro-2.0.6.jar;%INSIGHT_HOME%/lib/log4j-1.3alpha.jar;%INSIGHT_HOME%/lib/log4j-chainsaw-1.3alpha-3.jar;%INSIGHT_HOME%/lib/xercesImpl.jar;%INSIGHT_HOME%/lib/xml-apis.jar;%INSIGHT_HOME%/lib/xmlParserAPIs.jar;%INSIGHT_HOME%/lib/commons-logging.jar;%INSIGHT_HOME%/lib/j2ssh-core.jar;%INSIGHT_HOME%/lib/commons-httpclient-2.0.2.jar;%INSIGHT_HOME%/lib/commons-net-1.3.0.jar

%JAVA_HOME%\bin\java -classpath %INSIGHT_CLASS_PATH% -DINSIGHT_HOME=%INSIGHT_HOME% com.mindtree.insight.gui.Insight

:end
------------------------------------------------------------

  Message #249908 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Open Source Log Analysis tool

Posted by: Rajesh Balamohan on April 02, 2008 in response to Message #249899
>>>> context of a log entry, searching on selective log entry fields, fileset definitions, remote browsing of 'nix servers, Eclipse plug-in, tailing of files e.t.c. are not possible using "grep" AFAIK

Thankx for the reply Regunath. "grep" in unix is much more powerful specifically for nailing down a specific set of criteria that you pass as regex.

Just to address some of your concerns: Tailing a file is perfectly possbile in unix (in windows use cygwin), remote logging using putty.exe or any such tool.

I fully agree with your good intention to opensource this. I am giving the points purely from the common experience people had with production systems.

  Message #249944 Post reply Post reply Post reply Go to top Go to top Go to top

log4j 1.3??

Posted by: Sebastian Otaegui on April 02, 2008 in response to Message #249830
http://logging.apache.org/log4j/1.3/index.html
log4j 1.3 development has been abandoned and no future releases or development is anticipated. Users of log4j 1.3 are encouraged to migrate to log4j 1.2 or to monitor and contribute to the log4j 2.0 development effort. The companions for log4j 1.2 provide many of the features that were developed during the log4j 1.3 development effort.


That being said I dont quite finish to understand why you are using log4j-1.3alpha9-SNAPSHOT.jar as the log4j library for insight-ui.

  Message #249978 Post reply Post reply Post reply Go to top Go to top Go to top

Broken

Posted by: Uros Mesaric on April 03, 2008 in response to Message #249830
Make it work first then start showing 1.5.1.
When I save FTP configuration and exit app, i found nothing on app restart.

  Message #249984 Post reply Post reply Post reply Go to top Go to top Go to top

Re: log4j 1.3??

Posted by: Regunath B on April 03, 2008 in response to Message #249944
Sebastian,

It is a matter of need based migration. We used 1.3 Alpha when it was released. We primarily use the log4.jar for classes like Level, LoggingEvent e.t.c which havent changed much over time. In case we choose to use log4j 2.0, we might have to support additional severity/priority levels or make changes to support existing ones.
We intend to migrate to log4j 2.0 when it becomes stable. Until then any version that supports these basic classes work for Insight.

  Message #249985 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Broken

Posted by: Regunath B on April 03, 2008 in response to Message #249978
Uros,

Another user raised this issue and we acknowledge it as a bug, introduced possibly as a regression effect of a change done recently. A bug has been logged at : http://sourceforge.net/tracker/index.php?func=detail&aid=1932949&group_id=212019&atid=1020092

Please await the next release where it will be fixed.

We would request you all to raise such questions via the Insight users mailing list. You may also want to check the project tracker to see if it has been reported already.

  Message #250256 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Broken

Posted by: Bindul Bhowmik on April 09, 2008 in response to Message #249985
A new release of Insight is available for download. This release fixes a number of issues raised in this thread.

The release is available from the insight SourceForge.net download page at https://sourceforge.net/project/showfiles.php?group_id=212019&package_id=254922&release_id=590780.

Please use the Insight Users Mailing list (mindtreeinsight-users@lists.sourceforge.net) for any issues regarding Insight.

  Message #250274 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very Windows friendly!

Posted by: Regunath B on April 10, 2008 in response to Message #249864
Tracy,

The Shell issue is now fixed. You may want to download the latest release from:

https://sourceforge.net/project/showfiles.php?group_id=212019&package_id=254922&release_id=590780.

Please use the Insight Users Mailing list (mindtreeinsight-users@lists.sourceforge.net) for any issues regarding Insight.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map