Creating an adapter configuration file
The Generic Log Adapter uses adapter configuration files to parse and convert log files
to the Common Base Event format.
To create an adapter configuration file:
- Create a folder in your plug-in project that will contain the file.
- Select File > New > Other.
The Select a wizard page of the New wizard opens.
- Expand the Generic Log Adapter folder and select Generic Log Adapter File.
Click Next.
- On the Generic Log Adapter File page, select the folder to contain the adapter configuration file.
- Enter a name for the adapter configuration file in the File name field. The adapter configuration file will have the
extension .adapter. Optionally, click the Advanced button to link to a file in your file system.
- Select the XML encoding to use for your adapter configuration file in the XML Encoding field. Although you will view
the adapter configuration file in the Adapter Configuration Editor, the file is actually an XML file.
- Click Next. to display the Template log file page.
- On the Template log file page, specify a log file of the type you want to parse
or select one using the Browse button. This log file will be used to help
define the parser rules. For example, it will be used to pre-fill properties
in the adapter configuration file so that when it is tested in the Adapter
Configuration Editor, the specified log file will be parsed.
- Click Finish to create the adapter configuration file.
The new adapter configuration file is created and listed in the Navigator view.
You will be prompted to switch to the Generic Log Adapter perspective so that the file
can be opened in the Adapter Configuration Editor.
Once the adapter configuration file is created, you need to configure the context instance.
Parent topic: Creating
a rules-based adapter
Copyright © 2005,2006 IBM Corporation. All rights reserved. This document
and the accompanying materials are made available under the terms of the
Eclipse Public License v1.0 which is
available at http://www.eclipse.org/legal/epl-v10.html