# \[Double\] Don’t binding name index on Elasticsearch when using RabbitMQ Beats

**URL:** <https://discuss.elastic.co/t/double-don-t-binding-name-index-on-elasticsearch-when-using-rabbitmq-beats/38012>\
**Category:** Logstash\
**Created:** [December 28, 2015, 1:33am UTC](https://discuss.elastic.co/t/double-don-t-binding-name-index-on-elasticsearch-when-using-rabbitmq-beats/38012 "2015-12-28T01:33:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatdat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tatdat/32/113160_2.png) [@tatdat](https://discuss.elastic.co/u/tatdat)\
**Post date:** [December 28, 2015, 1:33am UTC](https://discuss.elastic.co/t/double-don-t-binding-name-index-on-elasticsearch-when-using-rabbitmq-beats/38012/1 "2015-12-28T01:33:17Z")

</div>

Hi,  
I using Message queue RabbitMQ :  
Client (Using Beat) -\>Logstash (forwarder) -\> RabbitMQ -\> Logstash (Indexer) -\> ES

I got errror when i config on Logstash Indexer, Out is ES. But when i see all my indices, new name indices : "%{[@metadata][beat]}-2015.12.25".  
Before, using Client -\> logstash(indexer) -\> ES, so name of new indices are ""filebeat-2015-12-25" ...

Here is my config when using rabbitMQ (file config on Logstash Indexer)

> input {  
> rabbitmq {  
> host =\> "10.1.11.177"  
> queue =\> "logstash-queue"  
> #durable =\> true  
> key =\> "logstash-key"  
> exchange =\> "logstash-rabbitmq"  
> threads =\> 3  
> prefetch\_count =\> 50  
> port =\> 5677  
> user =\> "username"  
> password =\> "password"  
> }  
> }

> ```
> output {
> elasticsearch {
> hosts => ["10.1.11.173:9200", "10.1.11.174:9200", "10.1.1.171:9200"]
> user => "username"
> password => "password"
> sniffing => true
> manage_template => false
> index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
> document_type => "%{[@metadata][type]}"
> }
> }
> 
> ```

And here is config on Logstash Forwarder

> ```
> input {
> beats {
> port => 5044
> }
> }
> output {
> rabbitmq {
> exchange => "logstash-rabbitmq"
> exchange_type => "direct"
> key => "logstash-key"
> host => "10.1.11.177"
> vhost => "/"
> workers => 4
> durable => true
> persistent => true
> port => 5677
> user => "username"
> password => "password"
> 
> ```

> ```
> }
> }
> 
> ```

[![](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d9ed5f2f623fd48e7908827923b479cd133160ba.png) ](https://imagizer.imageshack.com/a/img908/290/7AWWQR.png)

What is wrong ?  
Can you help me fix it.  
Thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 28, 2015, 1:37am UTC](https://discuss.elastic.co/t/double-don-t-binding-name-index-on-elasticsearch-when-using-rabbitmq-beats/38012/2 "2015-12-28T01:37:49Z")

</div>

Please keep it to one thread 🙂  
Let's continue the conversation here - [Don't binding name index on Elasticsearch when using RabbitMQ](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/2)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 28, 2015, 1:37am UTC](https://discuss.elastic.co/t/double-don-t-binding-name-index-on-elasticsearch-when-using-rabbitmq-beats/38012/3 "2015-12-28T01:37:52Z")

</div>


