IBM webMethods Broker Document Logging
IBM webMethods Broker Document Logging
You can configure your system to log documents that Broker clients publish to or subscribe to, on Brokers. Integration Server logs those documents to the IS Core Audit Log database component. Configuring your system to log documents that Broker clients publish to or subscribe to, on Brokers, involves these steps:
- During installation of IBM webMethods Broker, you selected a preconfigured storage session for the Broker Server. Make sure the Broker Server storage files can accommodate the volume of document logging you expect. For instructions on adjusting the size of the storage file, see The Storage Files.
- Install IBM webMethods Logging Utility on Integration Server. The Logging Utility functions as a logging agent between Integration Server and Brokers. Also, install the IS Core Audit Log database component, if it is not already installed. For instructions, see Installing IBM webMethods Products.
- Configure Integration Server to connect to a Broker on which Broker clients will publish or subscribe to documents you want to log. For instructions, see IBM webMethods Integration Server Administrator’s Guide.
- Set up document logging, as follows:
- Enable document logging on the connected Broker.
- Identify the documents you want the connected Broker to log, and specify whether to log the documents on publish or on subscriber acknowledgement.
- Logging Utility (WmLogUtil package) is an Integration Server package. Therefore, it can communicate only with the Broker that is connected to Integration Server. If you want other Brokers in a territory or cluster also to perform document logging then you must configure Integration Server and Logging Utility for that Broker also.
- Optionally, specify your own document IDs for logged documents. Doing so lets you provide a uniform business context for these documents that will be helpful when you view them later in My webMethods.
- After document logging is set up, the
connected
Broker begins creating copies of the documents you identified.
These copies are called
logged documents, and are
stored in
Broker's
Logging Utility client queue.
Identify the number of logged documents Logging Utility must remove from
Broker's Logging Utility client queue at one time and forward to
Integration Server to store in the IS Core Audit Log database component.
For instructions, see Setting Up Document Logging.
The following figure illustrates document logging with the Logging Utility.

Logging Utility Client Groups and Clients
When the Logging Utility connects to Broker for the first time, Broker creates two client groups and a client in each client group for Logging Utility:
- LogOnPublish client group. For grouping the Logging Utility client queues that store documents logged during publish to Broker.
- LogOnAck client group. For grouping the Logging Utility client queues that store documents logged during subscription acknowledgement to Broker.
Both client groups are created with the property "AllCanSubscribe," which means clients belonging to these client groups can subscribe to any document without the need to add that document to the client group's "cansubscribe" list.
Each client group contains the following clients:
- <Integration Server client prefix>_LogOnPublish. Broker creates this client in the LogOnPublish client group. The queue of this client stores the documents logged during publish to Broker.
-
<Integration Server client prefix>_LogOnAck. Broker creates this client in the LogOnAck client group. The queue of this client stores the documents logged during subscriber acknowledgement to Broker.
Note: Logging Utility clients on Broker and Broker clients are different from one another. Do not consider them to be functionally similar.
Client ID
When you are connecting multiple Integration Servers to Broker, the Logging Utility on the Integration Server that first connects to the Broker creates the LogOnPublish and LogOnAck client groups. When the remaining Integration Servers connect to the Broker, only clients are created in the respective client groups.
Each Logging Utility client has an associated Client ID. The first part of the Client ID identifies the Integration Server with which the client is associated, and the second part identifies the associated Logging Utility client group.
Integration Server Client prefix is a string that identifies Integration Server to Broker. By default, Integration Server uses its license key for the prefix. For ease of use, you can replace it with a name of your choice.
Client ID has the following formats:
-
<Integration
Server client prefix>_LogOnPublish
For example, in the client ID,
Wjb5tM+bn8pBOTAWIc4XWbfdh5w_LogOnPublish,Wjb5tM+bn8pBOTAWIc4XWbfdh5wis the name of the Integration Server, andLogOnPublishis the name of the Logging Utility client group. -
<Integration
Server client prefix>_LogOnAck
For example, in the client ID,
Wjb5tM+bn8pBOTAWIc4XWbfdh5w_LogOnAck,Wjb5tM+bn8pBOTAWIc4XWbfdh5wis the name of the Integration Server, andLogOnAckis the name of the Logging Utility client group.
Identifying a Logging Utility Client by Client ID
About this task
Use the following procedure to identify a logging utility client by client ID.
To identify a Logging Utility client by client ID
Procedure
Setting Up Document Logging
You must set up document logging so that the Logging Utility clients in the LogOnPublish client group can log documents when publish activity occurs at Broker, and clients in the LogOnAck client group can log subscriber acknowledgement activity at Broker.
To set up document logging
- Enable document logging. For more information, see Enable Document Logging.
- Identify the document types you want to log. For more information, see Identify Document Types to Log.
- Subscribe to document types from other Brokers. For more information, Subscribe to Document Types from Other Brokers in the Territory or Cluster.
- Specify document IDs. For more information, see Specify User-Defined Document IDs.
- Specify how many documents to pass to Integration Server. For more information, see Specify Number of Logged Documents to Give to Integration Server at One Time.
- Configure any additional settings, as needed. For more information, see Other Configuration Settings.
Enable Document Logging
About this task
Use the following procedure to enable document logging on Broker.
To enable document logging on Broker
Procedure
Identify Document Types to Log
About this task
Use the following procedure to identify document types you want the connected Broker to log. Specify whether to log the documents on publish or on subscriber acknowledgement.
To identify document types to log
Procedure
- In My webMethods: Administration > Messaging > Broker Server s > Clients.
- In the Client List, click the client ID of the Broker client (<Integration Server client prefix>_LogOnPublish and <Integration Server client prefix>_LogOnAck) for which you want to register document type subscriptions. If the Broker client does not appear in the list, use the Search tab to locate it.
- On the Client Details page, click the Subscriptions tab. You will see a list of all the document types to which the Broker client has "cansubscribe" permissions.
- Select the check box next to each document type to which you want the Broker client to subscribe.
- Click Subscribe. On the Subscription tab, My webMethods displays a "Yes" in the Subscription column for each document type to which the Broker client subscribes.
Subscribe to Document Types from Other Brokers in the Territory or Cluster
About this task
To subscribe to document types from other Brokers
Procedure
Specify User-Defined Document IDs
About this task
Use the following procedure to specify user-defined document IDs.
To specify user-defined document IDs
Procedure
Specify Number of Logged Documents to Give to Integration Server at One Time
About this task
Use the following procedure to specify the number of logged documents to pass to Integration Server at one time.
To specify the number of logged documents to pass to Integration Server at one time
Procedure
Other Configuration Settings
You can configure the
SharedEventOrdering
and
BrokerTimeout
parameters in the WmLogUtil\config\LoggingUtility.cnf file.
| Parameter | Description |
|---|---|
SharedEventOrdering
|
Specifies how the documents will be
arranged. To handle high document volume in a clustered
Integration Server environment, set the
For example, if you want
Integration Servers to process the documents ordered by publishers, set
|
BrokerTimeout
|
Specifies how long (in milliseconds) Integration Server will wait before timing out the Broker. The default value is 30 seconds. For example, to configure the
Broker timeout value to one minute, set
|
Logging Utility Management
The Logging Utility starts automatically when you start Integration Server. The Logging Utility home page shows the utility's status.
Managing the Logging Utility
About this task
Use the following procedure to manage the Logging Utility.
To manage the Logging Utility
Procedure
Built-In Services
You can use Logging Utility built-in services to work with the log queue of the Broker that is connected to the Logging Utility-equipped Integration Server. You can use these services to check the number of documents in the queue, view problematic documents in the queue, or delete a problematic document from the queue. The services below are available in the WmLogUtil package:
| Service | Description |
|---|---|
| pub.loggingUtility.util:brokerLoggingLength |
Retrieves the number of logged documents in the Broker's log queue. |
| pub.loggingUtility.util:brokerLoggingPeek |
Displays logged documents in the Broker's log queue. |
| pub.loggingUtility.util:brokerLoggingSingleExtract |
Removes a logged document from the Broker's log queue. |
pub.loggingUtility.util:brokerLoggingLength
Retrieves the number of logged documents in the Broker's log queue.
Input Parameters
None.
Output Parameters
| LoggingLength | String Number of logged documents in the Broker's log queue. |
Usage Notes
To use this service, run it directly from IBM webMethods Designer and view the results on Designer's Service Result tab. Do not call the service from Integration Server services at run time.
pub.loggingUtility.util:brokerLoggingPeek
Displays logged documents in the Broker's log queue.
Input Parameters
| NumberToPeek | String Number of logged documents to view, starting with the oldest logged document in the log queue. |
Output Parameters
| BrokerEventStrings | String List Collection of logged documents. Each element in BrokerEventStrings contains an entire logged document represented in String form. |
Usage Notes
You might use this service to locate a problematic logged document.
To use this service, run it directly from Designer and view the results on Designer's Service Result tab. Do not call the service from Integration Server services at run time.
pub.loggingUtility.util:brokerLoggingSingleExtract
Removes a logged document from the Broker's log queue.
Input Parameters
| DeleteEvent | String Indicates whether to remove the oldest logged document from the log queue. Values are y, yes, true, or on and are case insensitive. |
Output Parameters
| BrokerEventString | String Removed logged document in string form. |
Usage Notes
To use this service, run it directly from Designer and view the results on Designer's Service Result tab. Do not call the service from Integration Server services at run time.