# Index not getting created in elasticsearch hot node

**URL:** https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281
**Category:** Elasticsearch
**Created:** [March 5, 2020, 11:53am UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281 "2020-03-05T11:53:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Vishnu\_mk](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@Vishnu\_mk](https://discuss.elastic.co/u/Vishnu_mk)
#### Post date: [March 5, 2020, 11:53am UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/1 "2020-03-05T11:53:28Z")

</div>

Below is the elasticsearch output plugin in logstash

```
 output {
            elasticsearch {
                     hosts => ["https://10.5.36.5:9200"]
                      index => "test-axiom"
                   # ilm_rollover_alias => "hub-axiom-new"
                   # ilm_pattern => "{now/d}-000001"
                   # ilm_policy => "axiom5-new"
                     document_id => "%{unqid}"
                     template => "/etc/logstash/templatehot/logstash-test.json"
                     user => "adfad"
                     password => "dnjvafaj"
                     ssl => true
                     ssl_certificate_verification => false
                     cacert => "/etc/logstash/ca.crt"
            }

    }

```

This is the template i am using so that the index gets created in hot node  
{  
"index\_patterns": ["test-ax\*"],  
"settings": {  
"number\_of\_shards": 1,  
"number\_of\_replicas": 0,  
"index.routing.allocation.require.data":"hot"  
}  
}

the index is getting created in warm node instead

```
test-axiom 0 p STARTED 32625 64.6mb 10.5.36.10 data-warm-3
test-axiom 0 r STARTED 32625 65mb 10.5.36.14 data-warm-1
```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 5, 2020, 12:38pm UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/2 "2020-03-05T12:38:04Z")

</div>

Could you run:

```
GET /_template/
GET /test-axiom
```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 5, 2020, 12:39pm UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/3 "2020-03-05T12:39:05Z")

</div>

I can see that you have also one replica which means that the template is not used or is not the one you think.

---

<div class="post-metadata">

### Author: ![Vishnu\_mk](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@Vishnu\_mk](https://discuss.elastic.co/u/Vishnu_mk)
#### Post date: [March 5, 2020, 1:14pm UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/4 "2020-03-05T13:14:23Z")

</div>

Yes @dadoonet the template does not exist when i run this **GET /\_template/** but i am applying the correct template i have checked it several times

`elasticsearch - Attempting to install template {:manage_template=>{"index_patterns"=>["test-ax*"], "settings"=>{"number_of_shards"=>1, "number_of_replicas"=>0, "index.routing.allocation.require.data"=>"hot"}}}`

Also i am getting the above log from logstash which implicates its attempting to install template

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 5, 2020, 1:49pm UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/5 "2020-03-05T13:49:14Z")

</div>

Could you try to install the template manually from Kibana dev console to see if there is any problem?

The template name by default is `logstash`. See [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-template\_name](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-template_name)  
You might have to set `template_overwrite`. [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-template\_overwrite](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-template_overwrite)

---

<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: [April 2, 2020, 1:49pm UTC](https://discuss.elastic.co/t/index-not-getting-created-in-elasticsearch-hot-node/222281/6 "2020-04-02T13:49:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
