# Logstash RabbitMq input plugin unable to find config file

**URL:** <https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733>\
**Category:** Logstash\
**Created:** [October 24, 2016, 10:19am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733 "2016-10-24T10:19:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajit\_Pawar](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@Ajit\_Pawar](https://discuss.elastic.co/u/Ajit_Pawar)\
**Post date:** [October 24, 2016, 10:19am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/1 "2016-10-24T10:19:44Z")

</div>

I am using RabbitMq plugin for input in logstash and sending rabbitmq message on elasticsearch in outoput. I have created config file as below

input {  
rabbitmq {  
host =\> "ip address of rabbitmq server"  
user =\> "mike"  
password =\> "mike123"  
subscription\_retry\_interval\_seconds =\>5  
}  
}

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
}  
}

but when testing configuration i am getting error in configuration like unexpected Error: No config file found at ..Can you make sure file is logstash.config and  
Some lengthy error below like  
C:/ELK-Stack/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash..

Can anyone please share sample for rabbitmq input plugin config file?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 24, 2016, 10:43am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/2 "2016-10-24T10:43:13Z")

</div>

Please quote the exact error message. It doesn't sound like something related to the rabbitmq input. What happens if you comment out that plugin in your config file?

---

<div class="post-metadata">

**Author:** ![Ajit\_Pawar](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@Ajit\_Pawar](https://discuss.elastic.co/u/Ajit_Pawar)\
**Post date:** [October 24, 2016, 11:43am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/3 "2016-10-24T11:43:10Z")

</div>

My bad .. i was directing to wrong file path ...Can you please share example of reading message from rabbitmq and sending those to elastic search .. i am not getting any error in config file and everything works fine on console but not able to receive message from rabbitmq ....

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 24, 2016, 11:49am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/4 "2016-10-24T11:49:28Z")

</div>

You're not telling the plugin which messages to subscribe to. You'll have to specify some combination of the `vhost`, `exchange`, `queue`, and `key` options.

---

<div class="post-metadata">

**Author:** ![Ajit\_Pawar](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@Ajit\_Pawar](https://discuss.elastic.co/u/Ajit_Pawar)\
**Post date:** [November 15, 2016, 6:40am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/5 "2016-11-15T06:40:51Z")

</div>

Thanks this works

---

<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, 4:30am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-plugin-unable-to-find-config-file/63733/6 "2017-07-06T04:30:34Z")

</div>


