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.

    Picture of the Select page of the New wizard

  3. Select Generic Log adaptor from the list in the left panel, and Generic Log adaptor File from the list in the right panel, and then click Next. The Generic Log adaptor File page opens.
  4. Select the folder to contain the adaptor file.
  5. 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.
  6. 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

  7. Click Next to display the Template  Log  File page.
  8. 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.
  9. 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