# Don't binding name index on Elasticsearch when using RabbitMQ

**URL:** <https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971>\
**Category:** Logstash\
**Created:** [December 25, 2015, 10:41am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971 "2015-12-25T10:41:10Z")\
**Posts on this page:** 7\
**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 25, 2015, 10:41am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/1 "2015-12-25T10:41:10Z")

</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"

    }
}

```

[![](http://imagizer.imageshack.us/a/img908/290/7AWWQR.png) ](http://imagizer.imageshack.us/a/img908/290/7AWWQR.png)

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

---

<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 26, 2015, 4:04am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/2 "2015-12-26T04:04:59Z")

</div>

Can you help me? 😁

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 26, 2015, 7:47pm UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/3 "2015-12-26T19:47:30Z")

</div>

As far as I understand, your problem happens when you use RabbitMQ. Do you have the same problem if you feed the data from LS directly into ES? If not, I recommend to post this question in the LS forum as it seems to be Logstash related. If that is ok for you, I can also move the topic.

---

<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:40am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/4 "2015-12-28T01:40:44Z")

</div>

When i feed data from LS to ES., i dont see anything problem. Please help move topic to LS Forum.  
And help me remove new my topic in LS forum.  
Thanks you very much 🙂

---

<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, 7:02am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/5 "2015-12-28T07:02:02Z")

</div>

Can you help me ?  
I try to reconfig logstash but got same error 😑

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 28, 2015, 8:28am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/6 "2015-12-28T08:28:54Z")

</div>

Hi,

see [this response](https://discuss.elastic.co/t/beats-deployment-with-logstash-relays-to-a-central-ls-instance/36107/4?u=steffens) for workaround. Problem is the '@metadata' field is not exported in output plugins.

---

<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, 5:17am UTC](https://discuss.elastic.co/t/dont-binding-name-index-on-elasticsearch-when-using-rabbitmq/37971/7 "2017-07-06T05:17:16Z")

</div>


