## Working with the Analysis Engine Sample

Introduction
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

1. This sample requires the Log Parser Sample (File > New > Example... > Hyades Logging > Log Parser Sample).

Assumptions

1. <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:

1. Confirm that all compilation errors have been fixed.
2. 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.

3. Import the <workspace>/AnalysisEngineProject/AnalysisEngineSampleSymptomDatabase.xml symptom database file (File > Import... > Symptom Database File).
4. Import the syslog1.log log file from the Log Parser Sample using the Simple Parser V1.0.
5. 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).