Configuring the outputter component

The outputter writes Common Base Event records provided by the formatter to a destination. The formatter is the component that takes the output provided by the parser and builds the correct Java object instance. The adapter runtime contains only a single pre-configured formatter that creates Common Base Event objects. To configure the outputter:

  1. Select Contexts > Context Basic Context Implementation > Component Logging Agent Outputter . The details of the outputter component are shown in the right pane.
  2. Update the Name, Description and Executable Class for the Outputter.
    Refer to the Configuration file structure reference to obtain the correct name of outputter classes to use. In the example below, the outputter has been changed to use the LogImportOutputter which receives Common Base Event instances and writes the externalized records to the Log Import loader of the Log and Trace Analyzer.

    Outputter component of the context is opened in the right pane
  3. If the Outputter type is changed in the Contexts node, the Outputter component in the Configuration Context instance needs to be updated as well. In the left pane of the Adapter Configuration Editor, select Configuration > Context Instance > Outputter. The right pane displays the outputter information.
  4. Select a type from the Outputter type list. For the LogImportOutputter, select undeclared from the list.
  5. Refer to Outputter types and required properties to view the required properties for each outputter type. To add a new property, follow these steps:
    1. Select Configuration > Context Instance > Outputter.
    2. Right-click to bring up the pop-up menu.Select Add > Property. The right pane refreshes with fields to enter the property name and value.
    3. Type the name and value of the property.
    4. Save the adapter configuration file to apply the changes.
      Note: If this parser will be used as a log parser extension to the Log Import Wizard of Log and Trace Analyzer, then the Outputter instance must be configured as an undeclared Outputter type and the Outputter component execution class must be specified as org.eclipse.hyades.logging.parsers.adapter.outputters.LogImportOutputter.
  6. Save the adapter configuration file changes.

Parent topic: Creating a rules-based adapter