Using db2diag log search feature
This section provides information about the filtering mechanism. The DB2 of IBM has a tool called diaglog. This tool is used to retrieve specific data from diaglog.log file according to a search command.
PATROL for IBM DB2 allows you to perform db2diag log filtering at any instance level within the DB2 hierarchy.
This topic includes:
Before you begin
You must have installed and imported PATROL for IBM DB2 to the TrueSight console.
To perform db2diag log search configuration
Do the following for all DB2 Local, DB2 Remote Unix, and DB2 Remote Windows connection setups:
- Login to your TrueSight console and go to the Infrastructure Policies under the Configuration tab.
- Click Create Policy and enter the Policy Name, Agent Selection Criteria, and enable the policy.
- Click Add Monitoring Configuration.
Select Monitoring Solution as IBM DB2, Monitor Profile as IBM DB2, and for instance consider Monitor Type as DB2 Local connection setup.
- Click Add to configure the policy.
- After specifying the Environment configuration details, expand the db2diag log search configuration list tab and click Add.
- Enter the DB2 instance name that you want to monitor. It supports regex for monitoring multiple instances. Use comma to separate instances.
- Click Add to enter the db2diag log search list.
- Specify the State from the list.
- Enter the search command. Based on the specified search command, the state will alert the user.
For example: If you select State as Alarm and specify the search command as
-g data:="ABP Start", this command displays the data that contains: "ABP Start" as an annotation with an Alarm.