Using error logs
There are a variety of error logs that you can use to help with problem determination and troubleshooting.
- The z/OS system console
- The channel-initiator job log
For information about error logs in IBM MQ classes for JMS, see Error logs in IBM MQ classes for JMS.
Suppressing or excluding messages from error logs
- For information on suppressing some messages on Multiplatforms, see Suppressing channel error messages from error logs on Multiplatforms.
- On z/OS, if you are using the z/OS message processing facility to suppress messages, the console messages can be suppressed. For more information, see IBM MQ for z/OS concepts.
AMQ_DIAGNOSTIC_MSG_SEVERITY environment variable
Type of message | Character |
---|---|
Informational (0) | I |
Warning (10) | W |
Error (20 or 30) | E |
Severe (40) | S |
Termination (50) | T |
AMQ5051I: The queue manager task 'LOGGER-IO' has started.
AMQ7075W: Unknown attribute foo at /var/mqm/qmgrs/QM1/qm.ini in
the configuration data.
AMQ9510E: Messages cannot be retrieved from a queue.
AMQ8506S: Command server MQGET failed with reason code 2009.
AMQ8301T: IBM MQ storage monitor job could not be started.
- Because the queue manager writes messages, the environment variable has to be set in the environment where the queue manager is started. This is especially important on Windows, where it might be the Windows service that starts the queue manager.
- AMQ_DIAGNOSTIC_MSG_SEVERITY also affects messages printed by a program.
The behavior that AMQ_DIAGNOSTIC_MSG_SEVERITY enables is set by default. You
can turn off this behavior by setting the environment variable to 0
.
Note that the new services always add the severity character.
ISO 8601 Time
From IBM MQ 9.1, the message time is included in ISO 8601 format, rather than in local time.
When IBM MQ processes write a message to an error
log, the message time in ISO 8601 format, in Coordinated Universal Time (UTC), is included as a
Time()
attribute.
Z
time zone indicates
UTC:11/04/2017 07:37:59 - Process(1) User(X) Program(amqzmuc0.exe)
Host(JOHNDOE) Installation(MQNI09000200)
VRMF(9.0.2.0) QMgr(QM1)
Time(2017-04-11T07:37:59.976Z)
Rename on Rollover
Prior to IBM MQ 9.1, when AMQERR01.LOG reaches the maximum configured size, AMQERR02.LOG is renamed to be AMQERR03.LOG. The contents of AMQERR01.LOG are then copied into AMQERR02.LOG, and AMQERR01.LOG is truncated to empty. This meant that it was possible for certain tools to miss messages that the tool has not processed, before those messages were copied into AMQERR02.LOG.
From IBM MQ 9.1, the logic is changed, so that AMQERR01.LOG is renamed to AMQERR02.LOG.