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:
- Create a folder in your workspace that will contain the file.
- Select File > New > Other.
The Select page of the New wizard opens.
- Select the Show all Wizards check box. All wizards will be shown on the page.
- Select the Generic Log adaptor folder and select Generic Log adaptor File.
Click Next. The Generic Log adaptor File page opens.
- Select the folder to contain the adaptor file.
- 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.
- 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.

- Click Next to display the Template Log File page.
- 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.
- 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
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.