Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Re: Generic Log Adapter Example
Re: Generic Log Adapter Example [message #11247] Mon, 21 March 2005 14:57 Go to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Andreas,
The GLA documentation will be upgraded from Hyades v3.2 to TPTP 4.0 in
the next few weeks. In the meantime, we will identify the associated Hyades
version (e.g. v3.2) required for the samples.

Please consult the org.eclipse.hyades.logging.adapter.config plug-in for
working examples of several adapter files (see runregex.bat) for Apache
(access.log and error.log) and XML (Common Base Event) log files.

Paul

"Andreas Voss" <eclipse@a-voss.de> wrote in message
news:cvqql7$oua$1@www.eclipse.org...
> Is there somewhere a *working* example for the rule based Generic Log
> Adapter? I have tried several versions of Eclipse (3.0.1, M4, M5a), EMF
> (2.0.1, 2.1.0) and hyades/tptp (3.1.0, 3.2.0, tptp-4.0.xx), and
> different versions of the samples (tutorial, flash demo) but always get
> NPEs and that kind of stuff. It would be very helpful if someone could
> provide the exact versions of eclipse, emf and tptp to get - for example
> - the demo at
>
>
http://www.eclipse.org/tptp/platform/documents/tutorials/gla /GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/samples /myLogParser.zip
>
> to run.
>
> Thanks a lot.
>
> Andreas
Re: Generic Log Adapter Example [message #18716 is a reply to message #11247] Thu, 26 May 2005 00:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tvalence1.cox.net

Hi,



Thanks for the myLogParser.zip sample project. I am encountering the
following issue with rule-based parsers (including myLogParser) and would
appreciate any help that you can provide.



I followed the "Testing the log parser in the Log and Trace Analyzer"
procedure in the online help for testing the myLogParser plugin in a new
run-time workbench session. However, no output (i.e. 0 matches) was
displayed in the Log Viewer.



I was able to view the output only after attaching to the Sample log (i.e.
myLogParser) logging agent from the LTA in my startup workbench session.
The logging agent was initiated via a Log File Import in a new run-time
workbench session. The progress bar in the Log File Import dialog appeared
to be "frozen" at ~50% during this test.



The above output behavior is consistent with the rule-based parsers that I
have prototyped thus far with TPTP 3.2A. Note that static parsers such as
the OOTB LogParserProject do not exhibit the same output issues.



I ran the myLogParser project in the following configuration of TPTP :



TPTP 3.2A

Eclipse 3.0.2

JDK 1.4.2_08

Windows XP Professional



I suspect that a user/configuration error is behind this output issue, but
have seen no direct references to a similar problem in the newsgroup.



Thanks in advance for your help!

- Ted







"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:d1ms3q$ged$1@news.eclipse.org...
> Hi Andreas,
> The GLA documentation will be upgraded from Hyades v3.2 to TPTP 4.0 in
> the next few weeks. In the meantime, we will identify the associated
> Hyades
> version (e.g. v3.2) required for the samples.
>
> Please consult the org.eclipse.hyades.logging.adapter.config plug-in
> for
> working examples of several adapter files (see runregex.bat) for Apache
> (access.log and error.log) and XML (Common Base Event) log files.
>
> Paul
>
> "Andreas Voss" <eclipse@a-voss.de> wrote in message
> news:cvqql7$oua$1@www.eclipse.org...
>> Is there somewhere a *working* example for the rule based Generic Log
>> Adapter? I have tried several versions of Eclipse (3.0.1, M4, M5a), EMF
>> (2.0.1, 2.1.0) and hyades/tptp (3.1.0, 3.2.0, tptp-4.0.xx), and
>> different versions of the samples (tutorial, flash demo) but always get
>> NPEs and that kind of stuff. It would be very helpful if someone could
>> provide the exact versions of eclipse, emf and tptp to get - for example
>> - the demo at
>>
>>
> http://www.eclipse.org/tptp/platform/documents/tutorials/gla /GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/samples /myLogParser.zip
>>
>> to run.
>>
>> Thanks a lot.
>>
>> Andreas
>
>
Re: Generic Log Adapter Example [message #18762 is a reply to message #18716] Fri, 27 May 2005 04:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.nobody.com

Ted,

Since you can attach to a logging agent generated from a log import
operation in another workbench, it appears that the adapter file for your
parser is not configured correctly for use in a log import scenario. To use
the adapter in a logParser exension to the Log Import wizard of Log and
Trace Analyzer, the executable class of the Outputter component in the
adapter configuration file must be
org.eclipse.hyades.logging.adapter.config.outputters.StaticP arserOutputter.
The help information for "Configuring the outputter component for a
rules-based parser" is not very clear about this. It is clearer in the
upcoming 3.3 version of the help. You can follow the instructions in
"Configuring the outputter component for a static adapter" to configure the
outputter correctly for the log import scenario. The StaticParserOutputter
class is poorly named and is deprecated in TPTP 4.0 and replaced with
LogImportOutputter.

Dave


"TVal" <tvalence1@cox.net> wrote in message
news:d736lu$dvp$1@news.eclipse.org...
> Hi,
>
>
>
> Thanks for the myLogParser.zip sample project. I am encountering the
> following issue with rule-based parsers (including myLogParser) and would
> appreciate any help that you can provide.
>
>
>
> I followed the "Testing the log parser in the Log and Trace Analyzer"
> procedure in the online help for testing the myLogParser plugin in a new
> run-time workbench session. However, no output (i.e. 0 matches) was
> displayed in the Log Viewer.
>
>
>
> I was able to view the output only after attaching to the Sample log (i.e.
> myLogParser) logging agent from the LTA in my startup workbench session.
> The logging agent was initiated via a Log File Import in a new run-time
> workbench session. The progress bar in the Log File Import dialog
appeared
> to be "frozen" at ~50% during this test.
>
>
>
> The above output behavior is consistent with the rule-based parsers that I
> have prototyped thus far with TPTP 3.2A. Note that static parsers such as
> the OOTB LogParserProject do not exhibit the same output issues.
>
>
>
> I ran the myLogParser project in the following configuration of TPTP :
>
>
>
> TPTP 3.2A
>
> Eclipse 3.0.2
>
> JDK 1.4.2_08
>
> Windows XP Professional
>
>
>
> I suspect that a user/configuration error is behind this output issue, but
> have seen no direct references to a similar problem in the newsgroup.
>
>
>
> Thanks in advance for your help!
>
> - Ted
>
>
>
>
>
>
>
> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> news:d1ms3q$ged$1@news.eclipse.org...
> > Hi Andreas,
> > The GLA documentation will be upgraded from Hyades v3.2 to TPTP 4.0
in
> > the next few weeks. In the meantime, we will identify the associated
> > Hyades
> > version (e.g. v3.2) required for the samples.
> >
> > Please consult the org.eclipse.hyades.logging.adapter.config plug-in
> > for
> > working examples of several adapter files (see runregex.bat) for Apache
> > (access.log and error.log) and XML (Common Base Event) log files.
> >
> > Paul
> >
> > "Andreas Voss" <eclipse@a-voss.de> wrote in message
> > news:cvqql7$oua$1@www.eclipse.org...
> >> Is there somewhere a *working* example for the rule based Generic Log
> >> Adapter? I have tried several versions of Eclipse (3.0.1, M4, M5a), EMF
> >> (2.0.1, 2.1.0) and hyades/tptp (3.1.0, 3.2.0, tptp-4.0.xx), and
> >> different versions of the samples (tutorial, flash demo) but always get
> >> NPEs and that kind of stuff. It would be very helpful if someone could
> >> provide the exact versions of eclipse, emf and tptp to get - for
example
> >> - the demo at
> >>
> >>
> >
http://www.eclipse.org/tptp/platform/documents/tutorials/gla /GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/samples /myLogParser.zip
> >>
> >> to run.
> >>
> >> Thanks a lot.
> >>
> >> Andreas
> >
> >
>
>
Re: Generic Log Adapter Example [message #18805 is a reply to message #18762] Fri, 27 May 2005 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tvalence1.cox.net

Thanks Dave and Paul.

I'm now able to view parser output using log import and logging agent attach
scenarios using two separate adapter configurations, i.e.

import adaptor config has the outputter component executable set to :
org.eclipse.hyades.logging.adapter.config.outputters.StaticP arserOutputter.

live monitoring adaptor config has the outputter component executabl set to:
org.eclipse.hyades.logging.adapter.config.outputters.CBELogO utputter

- Ted

"Dave Smith" <nobody@nobody.com> wrote in message
news:d767mv$m6k$1@news.eclipse.org...
> Ted,
>
> Since you can attach to a logging agent generated from a log import
> operation in another workbench, it appears that the adapter file for your
> parser is not configured correctly for use in a log import scenario. To
> use
> the adapter in a logParser exension to the Log Import wizard of Log and
> Trace Analyzer, the executable class of the Outputter component in the
> adapter configuration file must be
> org.eclipse.hyades.logging.adapter.config.outputters.StaticP arserOutputter.
> The help information for "Configuring the outputter component for a
> rules-based parser" is not very clear about this. It is clearer in the
> upcoming 3.3 version of the help. You can follow the instructions in
> "Configuring the outputter component for a static adapter" to configure
> the
> outputter correctly for the log import scenario. The
> StaticParserOutputter
> class is poorly named and is deprecated in TPTP 4.0 and replaced with
> LogImportOutputter.
>
> Dave
>
>
> "TVal" <tvalence1@cox.net> wrote in message
> news:d736lu$dvp$1@news.eclipse.org...
>> Hi,
>>
>>
>>
>> Thanks for the myLogParser.zip sample project. I am encountering the
>> following issue with rule-based parsers (including myLogParser) and would
>> appreciate any help that you can provide.
>>
>>
>>
>> I followed the "Testing the log parser in the Log and Trace Analyzer"
>> procedure in the online help for testing the myLogParser plugin in a new
>> run-time workbench session. However, no output (i.e. 0 matches) was
>> displayed in the Log Viewer.
>>
>>
>>
>> I was able to view the output only after attaching to the Sample log
>> (i.e.
>> myLogParser) logging agent from the LTA in my startup workbench session.
>> The logging agent was initiated via a Log File Import in a new run-time
>> workbench session. The progress bar in the Log File Import dialog
> appeared
>> to be "frozen" at ~50% during this test.
>>
>>
>>
>> The above output behavior is consistent with the rule-based parsers that
>> I
>> have prototyped thus far with TPTP 3.2A. Note that static parsers such
>> as
>> the OOTB LogParserProject do not exhibit the same output issues.
>>
>>
>>
>> I ran the myLogParser project in the following configuration of TPTP :
>>
>>
>>
>> TPTP 3.2A
>>
>> Eclipse 3.0.2
>>
>> JDK 1.4.2_08
>>
>> Windows XP Professional
>>
>>
>>
>> I suspect that a user/configuration error is behind this output issue,
>> but
>> have seen no direct references to a similar problem in the newsgroup.
>>
>>
>>
>> Thanks in advance for your help!
>>
>> - Ted
>>
>>
>>
>>
>>
>>
>>
>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>> news:d1ms3q$ged$1@news.eclipse.org...
>> > Hi Andreas,
>> > The GLA documentation will be upgraded from Hyades v3.2 to TPTP 4.0
> in
>> > the next few weeks. In the meantime, we will identify the associated
>> > Hyades
>> > version (e.g. v3.2) required for the samples.
>> >
>> > Please consult the org.eclipse.hyades.logging.adapter.config plug-in
>> > for
>> > working examples of several adapter files (see runregex.bat) for Apache
>> > (access.log and error.log) and XML (Common Base Event) log files.
>> >
>> > Paul
>> >
>> > "Andreas Voss" <eclipse@a-voss.de> wrote in message
>> > news:cvqql7$oua$1@www.eclipse.org...
>> >> Is there somewhere a *working* example for the rule based Generic Log
>> >> Adapter? I have tried several versions of Eclipse (3.0.1, M4, M5a),
>> >> EMF
>> >> (2.0.1, 2.1.0) and hyades/tptp (3.1.0, 3.2.0, tptp-4.0.xx), and
>> >> different versions of the samples (tutorial, flash demo) but always
>> >> get
>> >> NPEs and that kind of stuff. It would be very helpful if someone could
>> >> provide the exact versions of eclipse, emf and tptp to get - for
> example
>> >> - the demo at
>> >>
>> >>
>> >
> http://www.eclipse.org/tptp/platform/documents/tutorials/gla /GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/samples /myLogParser.zip
>> >>
>> >> to run.
>> >>
>> >> Thanks a lot.
>> >>
>> >> Andreas
>> >
>> >
>>
>>
>
>
Re: Generic Log Adapter Example [message #18828 is a reply to message #18805] Mon, 30 May 2005 20:39 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Ted,
You may also want to consult the source code from our EclipseCon
tutorial:

http://www.eclipse.org/tptp/ >> Documentation >> Using TPTP Logging and
Monitoring Tools (source)

Paul

"TVal" <tvalence1@cox.net> wrote in message
news:d77sm7$gnb$1@news.eclipse.org...
> Thanks Dave and Paul.
>
> I'm now able to view parser output using log import and logging agent
attach
> scenarios using two separate adapter configurations, i.e.
>
> import adaptor config has the outputter component executable set to :
>
org.eclipse.hyades.logging.adapter.config.outputters.StaticP arserOutputter.
>
> live monitoring adaptor config has the outputter component executabl set
to:
> org.eclipse.hyades.logging.adapter.config.outputters.CBELogO utputter
>
> - Ted
>
> "Dave Smith" <nobody@nobody.com> wrote in message
> news:d767mv$m6k$1@news.eclipse.org...
> > Ted,
> >
> > Since you can attach to a logging agent generated from a log import
> > operation in another workbench, it appears that the adapter file for
your
> > parser is not configured correctly for use in a log import scenario. To
> > use
> > the adapter in a logParser exension to the Log Import wizard of Log and
> > Trace Analyzer, the executable class of the Outputter component in the
> > adapter configuration file must be
> >
org.eclipse.hyades.logging.adapter.config.outputters.StaticP arserOutputter.
> > The help information for "Configuring the outputter component for a
> > rules-based parser" is not very clear about this. It is clearer in the
> > upcoming 3.3 version of the help. You can follow the instructions in
> > "Configuring the outputter component for a static adapter" to configure
> > the
> > outputter correctly for the log import scenario. The
> > StaticParserOutputter
> > class is poorly named and is deprecated in TPTP 4.0 and replaced with
> > LogImportOutputter.
> >
> > Dave
> >
> >
> > "TVal" <tvalence1@cox.net> wrote in message
> > news:d736lu$dvp$1@news.eclipse.org...
> >> Hi,
> >>
> >>
> >>
> >> Thanks for the myLogParser.zip sample project. I am encountering the
> >> following issue with rule-based parsers (including myLogParser) and
would
> >> appreciate any help that you can provide.
> >>
> >>
> >>
> >> I followed the "Testing the log parser in the Log and Trace Analyzer"
> >> procedure in the online help for testing the myLogParser plugin in a
new
> >> run-time workbench session. However, no output (i.e. 0 matches) was
> >> displayed in the Log Viewer.
> >>
> >>
> >>
> >> I was able to view the output only after attaching to the Sample log
> >> (i.e.
> >> myLogParser) logging agent from the LTA in my startup workbench
session.
> >> The logging agent was initiated via a Log File Import in a new run-time
> >> workbench session. The progress bar in the Log File Import dialog
> > appeared
> >> to be "frozen" at ~50% during this test.
> >>
> >>
> >>
> >> The above output behavior is consistent with the rule-based parsers
that
> >> I
> >> have prototyped thus far with TPTP 3.2A. Note that static parsers such
> >> as
> >> the OOTB LogParserProject do not exhibit the same output issues.
> >>
> >>
> >>
> >> I ran the myLogParser project in the following configuration of TPTP :
> >>
> >>
> >>
> >> TPTP 3.2A
> >>
> >> Eclipse 3.0.2
> >>
> >> JDK 1.4.2_08
> >>
> >> Windows XP Professional
> >>
> >>
> >>
> >> I suspect that a user/configuration error is behind this output issue,
> >> but
> >> have seen no direct references to a similar problem in the newsgroup.
> >>
> >>
> >>
> >> Thanks in advance for your help!
> >>
> >> - Ted
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> >> news:d1ms3q$ged$1@news.eclipse.org...
> >> > Hi Andreas,
> >> > The GLA documentation will be upgraded from Hyades v3.2 to TPTP
4.0
> > in
> >> > the next few weeks. In the meantime, we will identify the associated
> >> > Hyades
> >> > version (e.g. v3.2) required for the samples.
> >> >
> >> > Please consult the org.eclipse.hyades.logging.adapter.config
plug-in
> >> > for
> >> > working examples of several adapter files (see runregex.bat) for
Apache
> >> > (access.log and error.log) and XML (Common Base Event) log files.
> >> >
> >> > Paul
> >> >
> >> > "Andreas Voss" <eclipse@a-voss.de> wrote in message
> >> > news:cvqql7$oua$1@www.eclipse.org...
> >> >> Is there somewhere a *working* example for the rule based Generic
Log
> >> >> Adapter? I have tried several versions of Eclipse (3.0.1, M4, M5a),
> >> >> EMF
> >> >> (2.0.1, 2.1.0) and hyades/tptp (3.1.0, 3.2.0, tptp-4.0.xx), and
> >> >> different versions of the samples (tutorial, flash demo) but always
> >> >> get
> >> >> NPEs and that kind of stuff. It would be very helpful if someone
could
> >> >> provide the exact versions of eclipse, emf and tptp to get - for
> > example
> >> >> - the demo at
> >> >>
> >> >>
> >> >
> >
http://www.eclipse.org/tptp/platform/documents/tutorials/gla /GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/samples /myLogParser.zip
> >> >>
> >> >> to run.
> >> >>
> >> >> Thanks a lot.
> >> >>
> >> >> Andreas
> >> >
> >> >
> >>
> >>
> >
> >
>
>
Previous Topic:cant start profiling -> error
Next Topic:Newbie: How to troubleshoot Eclipse freezes
Goto Forum:
  


Current Time: Mon Dec 22 14:18:14 GMT 2014

Powered by FUDForum. Page generated in 0.02299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software