Setting up a log parser plug-in project
Before you can create a log parser, create the plug-in project and configure the project build path.
Creating the plug-in project
- In the Navigator view, right-click and select New > Project. The New Project wizard opens.
- Select Plug-in Project and click Next.
- On the New Plug-in Project page, type the project name and select the directory where the project contents will be stored and click Next.
- On the Plug-in Project Structure page, under Project Settings, select Create a Java project radio button. Specify the name you want to use for the different components of your project. Click Next. The Plug-in Content window opens.
- On the Plug-in Content page, Specify a value for Provider Name. Change the other default values as required. Click Finish. The plug-in project is created. (You will be asked to switch to the plug-in perspective.)
Setting up the Java build path for the plug-in project
In order to use the Generic Log Adapter framework, the following plug-ins need to be included in your plug-in project:
- org.eclipse.core.boot
- org.eclipse.core.resources
- org.eclipse.core.runtime
- org.eclipse.hyades.logging.adapter.config
- org.eclipse.hyades.logging.parsers
- org.eclipse.ui
If you have the Hyades source code in your workspace, include the above plug-ins in the Java build path of your plug-in project.
- In the Package Explorer, select your plug-in project name, right-click and select Properties. (Alternately, use the ALT-ENTER keys.) The Properties wizard opens.
- Select the Projects tab.
- Under Required projects on the build path, select the projects listed above. Click Okay.
If you do not have the Hyades source code, include the runtime libraries of the above plug-ins in your plug-in project's Java build path.
- In the Package Explorer view, select your plug-in project name, right-click and select Properties. (Alternately, use the ALT-ENTER keys.) The Properties window opens.
- Select the Libraries tab.
- Select the Add External Jars button. Navigate to the directory where Hyades is installed and add the runtime libraries of the above plug-ins as required. Click OK.
The next step in creating a log parser is to create an adapter configuration file. There are two types of adapters that can be created; rules-based adapters and static parser adapters.
Related Concepts
Common Base Event format specification
Related tasks
Creating a rules-based adapter
Creating a static adapter
Creating a log parser