dubek/rabbitmq-dump-queue

How to use vhost

Opened this issue · 3 comments

How to use vhost? My queue is in vhost. There is a possibility?

dubek commented

Add the RabbitMQ vhost name at the end of the AMQP URI. For example:

rabbitmq-dump-queue -uri="amqp://user:password@rabbitmq.example.com:5672/myvhost" ...

Please let me know if worked — I'll add a short explanation about it in the README.

In my case, the vhost was /myvhost and I had to use this format:
-uri="amqp://user:password@rabbitmq.example.com:5672//myvhost"

I was able to run successfully the command using the syntax suggested from @dubek . If possible, please update the README, will be easier for anyone else to find it, instead of looking at the opened issues