Testing an adapter configuration file with the editor test views

As you write your rules in the editor you can immediately apply the rules to the selected template file and inspect the outputs of each of the components that are included in a context.

To start testing your rules, first select the context instance in the editor. This will activate the template viewer shown at the bottom of the editor. Once the context instance is selected in the editor, you can then run, refresh, and step through your template file and see the results of the configuration as the context is executed within the adapter runtime. This is not emulation; you are actually running this context in the same runtime that is provided as the Hyades Generic Log Adapter runtime.

To test an adapter file in the Generic Log Adapter editor:

  1. To run the adapter using the current configuration, select the context instance in the editor
  2. Then click on the Rerun adapter Picture of the Rerun adapter icon toolbar button in the Template Log view.
  3. (Optional) Update the extractor if necessary and then rerun the adapter, by clicking the Rerun adapter toolbar button.
  4. Use the Show First Event Picture of the Show First Event icon, Show Next EventPicture of the Show Next Event icon, Show Previous EventPicture of the Show Previous event, Show Last Event Picture of the Show Last Event icon buttons on the Template Log toolbar to navigate the events generated by the extractor. When you click these buttons, the log records will display in the Template Log view and the parser results of the log records will display in the Outputter Result view.

    Picture of the Log adapter editor and the associated output in the Template Log view and the Outputter Result view

  5. (Optional) Click the Show log toolbar button to view all of the log records that have input to the parser in the Log content view.

Related concepts
Generic Log Adapter editor

Related tasks
Developing an end-to-end transform solution
Creating an adapter file
Deleting an adapter configuration file

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