This sample demonstrates the capability of creating an analysis engine. An analysis engine is used to analyze log records within a log file against a symptom database.
Contents
The contents of the sample include the Java source code and dependencies necessary to demonstrate the capability of creating an analysis engine.
Prerequisites
This sample requires the Log Parser Sample (File > New > Example... > Hyades Logging > Log Parser Sample).
Assumptions
<workspace> represents the absolute path to the workbench's workspace.
Dependencies
The JAR file(s) listed in the below table are required to execute this
sample:
JAR
file
Plug-in
it is contained in
Reason for requirement
ae.jar
org.eclipse.hyades.analysis.engine
org.eclipse.hyades.analysis.engine.logAnalyzer extension point
cbe-model.jar
org.eclipse.hyades.models.cbe
EMF Common Base Event model
Execution Steps
To run this sample , follow these steps:
Confirm that all compilation errors have been fixed.
Before running this sample, add the required plug-ins to the search path of the Workbench then create a run-time instance of the Workbench.
Go to the Target Platform preferences page (Window > Preferences... > Plug-In Development > Target Platform)
and click on the Reload button then the Not In Workspace button. Click OK.
Now create a run-time instance of the Workbench (Run > Run As > Run-time Workbench).
Continue executing the next steps on this run-time instance of the Workbench.
Import the syslog1.log log file from the Log Parser Sample using the Simple Parser V1.0.
Run the Analysis Engine Sample by importing a log file (File > Import > Log File > Next > Add) and analyzing one or more log records in the Log View (<right-click> > Analyze > Sample Log Analyzer).