Configuring the context instance for a rules-based adapter
Prerequisites:
Create an Adapter Configuration File
In the Adapter Configuration File, the context instance describes the ordered grouping of components
as they are chained together for log file processing.
Each log file has a separate context, and multiple contexts can be defined in a single configuration.
To configure the context instance, follow these steps:
- In the left pane of the Adapter Configuration Editor,
expand the Configuration node. Select Context Instance.
The right pane displays the Context Instance information.
- Select Continuous operation if you want the log file to be monitored for changes continuously.
If continuous operation is selected, specify the Maximum Idle Time and Pause Interval
values to be used for monitoring. If continuous operation is not specified the Maximum Idle Time and Pause Interval values will be ignored.
- Specify the maximum number of milliseconds the context should wait for a log file to change
before it is shut down in the Maximum Idle Time field
- Specify the number of milliseconds the context should wait after reaching the end of a log file before trying to read
again in the Pause Interval field.
- Specify the locale of the log file you want to parse using the ISO Language Code and the ISO Country Code fields. The ISO Language Code field
takes the lower-case, two-letter codes as specified by ISO-639.
The ISO Country Code takes the upper-case, two-letter codes as specified by ISO-3166.
The default value for the language code is en and the default value for the country code is US.
Note: The Java VM you are using must support the locale and encoding that you are specifying.
- Specify the encoding used for the log file in the Encoding field. The encoding specified must comply with the defined ISO charsets.
The default value for this field is UTF-8.
Note:If no value is specified in the Encoding field,
the log file will be parsed as UTF-8 on all platforms except on z/OS.
On z/OS, the log file will be parsed using the EBCDIC codepage IBM-1047.
- Save the adapter configuration file changes.
Changes in the adapter configuration file are saved in the plug-in project you created.
For details of the adapter configuration file structure, please see the related reference topics.
Once the adapter context is configured, continue to configure the sensor component.
Related concepts
Overview of the Hyades Generic Log Adapter
Related tasks
Configuring the sensor component
Related references
Adapter Configuration File structure
Adapter Configuration Editor
Regular expression grammar
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.