dubek / rabbitmq-dump-queue

Dump messages from a RabbitMQ queue to files, without affecting the queue.
MIT License
214 stars 42 forks source link

How to use vhost #8

Open darksmoke opened 7 years ago

darksmoke commented 7 years ago

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

dubek commented 7 years ago

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.

jalex19100 commented 6 years ago

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

pc-star commented 4 years ago

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