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:

  1. Create a folder in your plug-in project that will contain the file.
  2. Select File > New > Other. The Select a wizard page of the New wizard opens.
  3. Expand the Generic Log Adapter folder and select Generic Log Adapter File. Click Next.
  4. On the Generic Log Adapter File page, select the folder to contain the adapter configuration file.
  5. 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.
  6. 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.
  7. Click Next. to display the Template log file page.
  8. 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.
  9. 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