Is it possible to view RabbitMQ message contents directly from the command line?

后端 未结 6 1475
Happy的楠姐
Happy的楠姐 2020-12-22 17:54

Is it possible to view RabbitMQ message contents directly from the command line?

sudo rabbitmqctl list_queues lists the queues.

Is there any comma

6条回答
  •  没有蜡笔的小新
    2020-12-22 18:23

    I wrote rabbitmq-dump-queue which allows dumping messages from a RabbitMQ queue to local files and requeuing the messages in their original order.

    Example usage (to dump the first 50 messages of queue incoming_1):

    rabbitmq-dump-queue -url="amqp://user:password@rabbitmq.example.com:5672/" -queue=incoming_1 -max-messages=50 -output-dir=/tmp
    

提交回复
热议问题