Determine which data you want to record, and configure your message flows to emit this data, by using monitoring events. Learn about the differences between how you configure event sources for data capture and for business-level monitoring.
Create and configure a database, and specify the broker runtime properties that are required for recording data. See Recording data.
The mechanism that is used for configuring message flows to emit event messages for data capture is also used for business-level monitoring. This mechanism is summarized in the concept topic Business-level monitoring, and is described further on in this topic. Because data capture and business-level monitoring can share event sources and monitoring events, you must ensure that the configuration for one does not inadvertently affect the other. Before you begin to configure monitoring for data capture, you need to be aware of some specific considerations that relate to the use of the monitoring mechanism for capturing data for record and replay.
When you configure a monitoring event, you can choose to include all of the message bitstream data, the headers only, or the message body only. When a broker replays a message, it needs to include a WebSphere MQ message header. It handles this requirement in one of the following ways:
You do not need to subscribe to the monitoring topic; the broker manages the subscription to the topic specified in the DataCaptureSource configurable service.
The sample monitoring profile works for a single input node. You must update the profile to replace NODENAME with the name of your input node. To enable this monitoring profile, run the mqsicreateconfigurableservice, mqsichangeproperties, and mqsichangeflowmonitoring commands against the broker to which you deployed the flow. For details about running these commands, see Configuring monitoring event sources using a monitoring profile.
The subscription to the monitoring events is durable, which results in messages being put to the queue specified in the queueName property of the DataCaptureStore configurable service. Messages can be put to this queue even when the broker is not running. For more information about how you can monitor the queue depth and tune data capture, see Tuning data capture.
Next:
Review the steps that you completed for recording data; see Recording data. Now you are ready to view the data that you recorded; see Viewing recorded data.