All Products
Search
Document Center

ApsaraMQ for MQTT:Query message traces

Last Updated:Feb 06, 2024

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

  1. Log on to the ApsaraMQ for MQTT console. In the left-side navigation pane, click Instances.

  2. 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.

  3. Find the instance that you want to manage and choose More > Message Trace Query in the Actions column.

  4. On the Message Trace Query page, specify the query conditions and time range based on your business requirements and click Search.

    Note

    The 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