Creating an adapter configuration file
Prerequisites:
Set up a log parser plug-in project
The Generic Log Adapter uses adapter configuration files to parse and covert 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 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, select a log file which will be used to
help define the parser rules.
- Click Finish to create the adapter configuration file.
The new adapter configuration file is listed in the Navigator view
and the file is opened in the Adapter Configuration Editor.
Once the adapter configuration file is created, you need to configure the context instance.
Related Concepts
Overview of the Generic Log Adapter
Related tasks
Configuring the context instance for a rules-based adapter
Configuring the adapter Contexts and Configuration for a static adapter
Related references
Adapter Configuration File structure
Adapter Configuration Editor
Regular expression grammar