If you have questions about the messages that are sent to Message Queue for RabbitMQ, you can query the messages in the Message Queue for RabbitMQ console.
Background information
- Query messages by queue: This method is used in fuzzy search scenarios in which you have obtained the queue to which messages are sent but not the message IDs that are specified when messages are sent.
- Query messages by message ID: This method is used in exact search scenarios in which you have obtained the message IDs that are specified when messages are sent. For more information, see How do I specify a message ID?.
Limits
- Message Queue for RabbitMQ allows you to query messages within a maximum of three days.
- Message Queue for RabbitMQ allows you to query a maximum of 100 messages at a time.
Query messages by queue
Query messages by message ID
- Log on to the Message Queue for RabbitMQ console. In the left-side navigation pane, select Instances.
- In the top navigation bar of the Instances page, select a region. In the instance list, click the name of the instance that you want to manage.
- In the left-side navigation pane, click Message Query.
- On the Message Query page, select Query by Message ID from the Query Method drop-down list.
- Select the vhost of the queue whose messages you want to query from the Vhost drop-down list, select the queue from the Queue drop-down list, enter the message ID that is specified when the message is sent in the Message ID field, configure the Time Range parameter, and then click Query.
What to do next
- Download a message
Among the queried messages, find the message that you want to download, choose Actions column.
in the - Resend a message
- Among the queried messages, find the message that you want to resend and click Resend in the Actions column.
- Read the Note message that appears and click OK.