# Facing Issue while creating custom exchange name and queue name using rabbitmq -river plugin

**URL:** <https://discuss.elastic.co/t/facing-issue-while-creating-custom-exchange-name-and-queue-name-using-rabbitmq-river-plugin/10771>\
**Category:** Elasticsearch\
**Created:** [February 18, 2013, 11:59am UTC](https://discuss.elastic.co/t/facing-issue-while-creating-custom-exchange-name-and-queue-name-using-rabbitmq-river-plugin/10771 "2013-02-18T11:59:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_K\_R\_VIJAY\_Krishna](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@C\_K\_R\_VIJAY\_Krishna](https://discuss.elastic.co/u/C_K_R_VIJAY_Krishna)\
**Post date:** [February 18, 2013, 11:59am UTC](https://discuss.elastic.co/t/facing-issue-while-creating-custom-exchange-name-and-queue-name-using-rabbitmq-river-plugin/10771/1 "2013-02-18T11:59:30Z")

</div>

Hi,  
I am new to Elastic search.For past two days I am exploring  
rabbitmq-river plugin in elastic search.When I am trying to provide custom  
exchange name,queue name,exchange type it is not accepting it is creating  
with default exchange name,routing-key ,queue name and exchange  
type(direct).Please find my below sample code :

curl -XPUT '[http://localhost:9200/\_river/my\_cdr/\_meta](http://localhost:9200/_river/my_cdr/_meta)' -d '{  
"type" : "rabbitmq",  
"rabbitmq" : {  
"host" : "localhost",  
"port" : 5672,  
"user" : "guest",  
"pass" : "guest",  
"vhost" : "/",  
"queue" : "vijaysearch",  
"exchange" : "vijaysearch",  
"routing\_key" : "vijay.\*",  
"exchange\_type" : "topic",  
"exchange\_durable" : false,  
"queue\_durable" : true,  
"queue\_auto\_delete" : false  
},  
"index" : {  
"bulk\_size" : 1000,  
"bulk\_timeout" : "10ms",  
"ordered" : false  
}  
}'

I need to connect to exchange which is already present in rabbitmq server  
and consume messages,create indices from this exchange.Please help me.

Thanks & Regards,  
Vijay.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:51am UTC](https://discuss.elastic.co/t/facing-issue-while-creating-custom-exchange-name-and-queue-name-using-rabbitmq-river-plugin/10771/2 "2017-07-06T02:51:00Z")

</div>


