Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Base User's Guide


11.1.3 Notes on log file trapping

Organization of this subsection

(1) Notes on monitoring the integrated trace log or syslog file

When you use a log file trap to monitor the integrated trace log or syslog file, attempts to transfer the log data to JP1 events might fail repeatedly. In such a case, the transfer error message KAJP1037-E is output to the integrated trace log or syslog file. If you include settings like the following in the action definition file for log file traps in order to monitor the integrated trace log or syslog file, the transfer error message KAJP1037-E is converted to a JP1 event.

Setting example:
When monitoring the integrated trace log or syslog file:
ACTDEF=<Error>11 "KAJP....-E"
ACTDEF=<Error>11 "-E"
When monitoring the syslog file:
ACTDEF=<Error>11 "error"

In this case, if the forwarding settings file (forward) is used with initial settings in a system that links with IM Configuration Management of JP1/IM or that uses the JP1/Base configuration management functionality, transfer-failure JP1 events are also forwarded. This causes the event transfer to loop repeatedly.

To prevent the event transfer from looping, change the setting in the action definition file for log file trapping, so that a log file trap will not trap the KAJP1037-E message. A setting example is shown below.

Setting example 1:
MARKSTR="KAJP1037-E"
Setting example 2:
ACTDEF=<Error>11 "KAJP....-E"
       !"KAJP1037-E"

(2) Note on using JP1/AJS log file monitoring jobs

If you want to use a JP1/AJS log file monitoring job, you must first start the JP1/Base log-file trap management service (daemon) and the event service. JP1/AJS log file monitoring jobs are executed using the JP1/Base log file trapping function.

For details on log file monitoring jobs, see the Job Management Partner 1/Automatic Job Management System 2 Planning and Administration Guide, Job Management Partner 1/Automatic Job Management System 3 System Design (Configuration) Guide, Job Management Partner 1/Automatic Job Management System 3 System Design (Work Tasks) Guide, and the Job Management Partner 1/Automatic Job Management System 3 Administration Guide.

(3) Note on monitoring Unicode files in Windows

When you use a log file trap to monitor Unicode files in Windows, even if the log file trap is started successfully, the log files might not be monitored properly. These problems occur due to inappropriate action definition specification or erroneous monitoring target files.

When you monitor Unicode files in Windows, errors are not reported in the cases shown in the table below. Therefore, check the log file trap operation (whether filtering can be properly performed according to the condition) in advance.

Table 11‒1: Cases where Unicode files cannot be monitored properly in Windows and associated prior checks

Case where monitoring cannot be performed properly

Prior check

Basic regular expression is used in the MARKSTR and ACTDEF parameters in the action definition file for log file trapping.

Specify the extended regular expressions used in the operation to the ACTDEF parameter in the action definition file for log file trapping, and check if proper filtering is performed according to the condition.

A Unicode file is specified in the action definition file for log file trapping.

Specify a multi-byte character in the ACTDEF parameter in the action definition file for log file trapping, and check if proper filtering is performed according to the condition.

The monitoring target file is a Unicode file and the -g option is omitted when executing the jevlogstart command.

You used the jevlogstart command with the -g option intending to monitor a Unicode file, but mistakenly specified a log file that is not Unicode.