How to configure 'amq.rabbitmq.event' exchange to a different vhost?

416 views
Skip to first unread message

Vimal David Vincent Devaraj

unread,
Aug 10, 2018, 6:51:00 AM8/10/18
to rabbitmq-users
I am configuring RabbitMQ with the rabbitmq_event_exchange plugin. I am using this plugin to listen to RabbitMQ events. By default, the plugin is creating an exchange named 'amq.rabbitmq.event' in the default vhost(/) . But, I am trying to change vhost to 'test' (custom vhost created by me) As per the instructions from the plugin page, I added a property rabbitmq_event_exchange.vhost= test in my rabbitmq.conf file. But I am getting an exception when I try to run the RabbitMQ

    Config file generation failed 10:50:18.141 [error] You've tried to 
    set rabbitmq_event_exchange.vhost, but there is no setting with 
    that name.
    10:50:18.141 [error]   Did you mean one of these?
    10:50:18.176 [error]     mqtt.exchange
    10:50:18.176 [error]     log.exchange.level
    10:50:18.176 [error]     management.listener.port
    10:50:18.176 [error] Error generating configuration in phase 
    transform_datatypes
    10:50:18.176 [error] Conf file attempted to set unknown variable: 
    rabbitmq_event_exchange.vhost

My rabbitmq.conf file

    management.load_definitions= /opt/definitions.json
    #MQTT config
    mqtt.default_user= guest
    mqtt.default_pass= guest
    mqtt.allow_anonymous= false
    mqtt.exchange= MQTT
    mqtt.vhost= test

    #RabbitMQ event exchange config
    rabbitmq_event_exchange.vhost= test

Michael Klishin

unread,
Aug 10, 2018, 6:10:52 PM8/10/18
to rabbitm...@googlegroups.com
Using the advanced.config file and the classic config format [1].
That plugin doesn't provide a new style configuration schema.

Which is a specific enough problem definition — please file an issue on GitHub?


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Vimal David Vincent Devaraj

unread,
Aug 13, 2018, 7:07:09 AM8/13/18
to rabbitmq-users
Thanks for the reply.  I will try the solution and also raise an issue on GitHub. 
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages