If messages are not sent or received as expected, you can use the message trace query feature of ApsaraMQ for MQTT to query the traces of the messages. This ensures the normal transmission of messages and helps troubleshoot issues.
Procedure
Log on to the ApsaraMQ for MQTT console. In the left-side navigation pane, click Instances.
In the top navigation bar, select the region where the instance that you want to manage resides. On the Instances page, click the instance name to go to the Instance Details page.
Find the instance that you want to manage and choose in the Actions column.
On the Message Trace Query page, specify the query conditions and time range based on your business requirements and click Search.
NoteThe maximum time span is one day.
You must configure the Message ID parameter or both the Group ID and Device ID parameters.
Query message traces by configuring the Message ID parameter: You can use this method to perform an exact match to query the trace of a message.
Query message traces by configuring the Group ID and Device ID parameters: You can use this method to perform a fuzzy match to query the messages of an ApsaraMQ for MQTT client.
In the query result, you can click Message Trace in the Actions column to view the trace of the message.
References
For information about how to query the status of a device, see Query the status of a device.
For information about how to query the connection history of a device, see Query the connection history of a device.