Retrieving user trace

Use the mqsireadlog command to access the trace information that is recorded by the user trace facilities. This command retrieves the trace details according to parameters that you specify on the command, and writes the requested records to a file, or to the command line window, in XML format.

Example: retrieving user trace information in XML format

To retrieve information for the user trace activated with the mqsichangetrace command and write it to an output file, on distributed systems, enter the command

mqsireadlog WBRK_BROKER -u -e default -o trace.xml

where:

-u specifies user trace
-e specifies the execution group (in this case, the default execution group)
-o specifies the output file (in this case, trace.xml)

This sends a log request to the broker to retrieve the user trace log, and stores the responses in the trace.xml file. You can view this file using a plain text editor.

Related concepts
Trace