skip to content
Alvin Lucillo

List messages of queue

/ 1 min read

Get the messages of a queue by providing the queue name in --queue argument:

➜  rabbitmq docker exec -it rabbitmq rabbitmqadmin get messages --queue=greetings
┌───────────────┬─────────────┬──────────┬─────────────┬───────────────┬────────────┬─────────┬──────────────────┐
│ payload_bytes │ redelivered │ exchange │ routing_key │ message_count │ properties │ payload │ payload_encoding │
├───────────────┼─────────────┼──────────┼─────────────┼───────────────┼────────────┼─────────┼──────────────────┤
│ 5             │ false       │          │ greetings   │ 0             │            │ henlo   │ string           │
└───────────────┴─────────────┴──────────┴─────────────┴───────────────┴────────────┴─────────┴──────────────────┘