Creating an adapter file

The Generic Log adapter uses adapter files to parse log files and converts them to Common Base Event format. To create an adapter file:

  1. Create a folder in your workspace that will contain the file.
  2. Select File > New > Other. The Select page of the New wizard opens.
  3. Select the Show all Wizards check box. All wizards will be shown on the page.

    Picture of the Select page of the New wizard

  4. Select the Generic Log adaptor folder and select Generic Log adaptor File. Click Next. The Generic Log adaptor File page opens.
  5. Select the folder to contain the adaptor file.
  6. Enter a name for the adaptor file in the File name field. The adaptor file will have the extension .adaptor. Optionally, click the Advanced button to link to a file in your file system.
  7. Select the XML encoding to use for your adaptor file in the XML Encoding field. Although you will view the adaptor file in the Generic Log adaptor editor, the file is actually an XML file.

    Picture of the Generic Log adaptor page

  8. Click Next to display the Template  Log  File page.
  9. Select a template log, which is used to help define the parser rules. This gives you a complete view of the parser results with the rules created in the editor.
  10. Click Finish to create the adaptor file. The adaptor file appears in the Navigator view the file opens in the editor.

Related concepts
Generic Log adaptor editor

Related tasks
Developing an end-to-end transform solution
Testing an adaptor configuration file with the editor test views
Deleting an adaptor configuration file

Related reference
Configuration file structure
Regular expression grammar
Generic Log adaptor editor icons