DEV Community

Dhanushka madushan
Dhanushka madushan

Posted on

Simple tool to read messages on RabbitMQ

I found the following repository that let you to read RabbitMQ messages easily.
https://github.com/dubek/rabbitmq-dump-queue
This is Go lang based tool and you can use it with the following command:

go get github.com/dubek/rabbitmq-dump-queue
Enter fullscreen mode Exit fullscreen mode

This will compile the code into the $GOPATH/bin and you can use the tool from there.
Following is a sample command that you can dump upto 500 messages from the rabbitmq along with its header data:

./rabbitmq-dump-queue  -uri="amqp://guest:guest@localhost:5672/" -queue=queue1 -max-messages=500 -output-dir=/output/locaiton -full
Enter fullscreen mode Exit fullscreen mode

Latest comments (0)