# Not able to create index logstash-\* in elasticsearch 6.2.2

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627>\
**Category:** Elasticsearch\
**Created:** [April 26, 2018, 9:32am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627 "2018-04-26T09:32:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 9:32am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/1 "2018-04-26T09:32:47Z")

</div>

I have re insatlled elasticsearch 6.2.2 and now i am not able to create index for logstash-\*.

GET \_cluster/health  
{  
"cluster\_name": "Development",  
"status": "red",  
"timed\_out": false,  
"number\_of\_nodes": 3,  
"number\_of\_data\_nodes": 1,  
"active\_primary\_shards": 17,  
"active\_shards": 17,  
"relocating\_shards": 0,  
"initializing\_shards": 0,  
"unassigned\_shards": 36,  
"delayed\_unassigned\_shards": 0,  
"number\_of\_pending\_tasks": 0,  
"number\_of\_in\_flight\_fetch": 0,  
"task\_max\_waiting\_in\_queue\_millis": 0,  
"active\_shards\_percent\_as\_number": 32.075471698113205  
}  
// cant understand how to proceed with it.Please guide me.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 9:42am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/2 "2018-04-26T09:42:24Z")

</div>

Why do you have 3 nodes, but only 1 data node? If you are starting out with Elasticsearch, I would recommend starting with a single node with default configuration. Just because you can have dedicated node types does not mean you should.

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 9:44am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/3 "2018-04-26T09:44:56Z")

</div>

As of now data are flowing in only 1 node

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 9:45am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/4 "2018-04-26T09:45:26Z")

</div>

What are the other nodes for?

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 9:49am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/5 "2018-04-26T09:49:36Z")

</div>

Ideally its suppose to be if any one node goes down the other node can replace it.I am new to this area.If I am wrong please guide me.Previously with elasticsearch 5.6.3 it was working fine.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 9:54am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/6 "2018-04-26T09:54:24Z")

</div>

If you are looking for high availability you should set up 3 nodes with default configuration (are master eligible and can hold data). Make sure they can connect to each other and set `minimum_master_nodes` to 2 according to [these guidelines](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/modules-node.html#split-brain) to avoid split-brain scenarios. Configure indices to have at least 1 replica so you have a copy of each shard even if one node is lost.

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 10:17am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/7 "2018-04-26T10:17:17Z")

</div>

I have alreay given that

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 10:18am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/8 "2018-04-26T10:18:18Z")

</div>

Can you show the content of the elasticsearch.yml files for the three nodes?

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 10:20am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/9 "2018-04-26T10:20:32Z")

</div>

my doubt is like why I cant create any index pattern.and why the status is red?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 10:21am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/10 "2018-04-26T10:21:49Z")

</div>

The issue is that the status is red, which prevents you from making any changes. If we can see the configuration files we may be able to identify why it is red in the first place.

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 10:31am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/11 "2018-04-26T10:31:20Z")

</div>

# ======================== Elasticsearch Configuration =========================

# 

# NOTE: Elasticsearch comes with reasonable defaults for most settings.

# Before you set out to tweak and tune the configuration, make sure you

# understand what are you trying to accomplish and the consequences.

# 

# The primary way of configuring a node is via this file. This template lists

# the most important settings you may want to configure for a production cluster.

# 

# Please consult the documentation for further information on configuration options:

# [https://www.elastic.co/guide/en/elasticsearch/reference/index.html](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- Cluster -----------------------------------

# 

# Use a descriptive name for your cluster:

# 

cluster.name: Development

# 

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

node.name: ${HOSTNAME}  
node.master: false  
node.data: true  
#node.name: node-1

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1

# 

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

#path.data: /path/to/data

# 

# Path to log files:

# 

path.logs: /var/log/elasticsearch

# 

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

network.host: [\*]

# 

# Set a custom port for HTTP:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when new node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

discovery.zen.ping.unicast.hosts: ["_","\*\*","_","\*"]

# 

# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):

# 

discovery.zen.minimum\_master\_nodes: 2

# 

# For more information, consult the zen discovery module documentation.

# 

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

gateway.recover\_after\_nodes: 2

# 

# For more information, consult the gateway module documentation.

# 

# ---------------------------------- Various -----------------------------------

# 

# Require explicit names when deleting indices:

# 

#action.destructive\_requires\_name: true

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 10:37am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/12 "2018-04-26T10:37:02Z")

</div>

I am able to make status green

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 11:13am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/13 "2018-04-26T11:13:03Z")

</div>

Excellent. That should allow you to make the changes you wanted. When posting config, please use the formatting tools in the UI so it is readable.

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 11:17am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/14 "2018-04-26T11:17:58Z")

</div>

Still i am not able to craete logstash index  
PUT /logstash-2015.05.18  
{  
"mappings": {  
"log": {  
"properties": {  
"geo": {  
"properties": {  
"coordinates": {  
"type": "geo\_point"  
}  
}  
}  
}  
}  
}  
}

response  
{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "[include\_in\_all] is not allowed for indices created on or after version 6.0.0 as [\_all] is deprecated. As a replacement, you can use an [copy\_to] on mapping fields to create your own catch all field."  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "Failed to parse mapping [_default_]: [include\_in\_all] is not allowed for indices created on or after version 6.0.0 as [\_all] is deprecated. As a replacement, you can use an [copy\_to] on mapping fields to create your own catch all field.",  
"caused\_by": {  
"type": "mapper\_parsing\_exception",  
"reason": "[include\_in\_all] is not allowed for indices created on or after version 6.0.0 as [\_all] is deprecated. As a replacement, you can use an [copy\_to] on mapping fields to create your own catch all field."  
}  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 11:21am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/15 "2018-04-26T11:21:19Z")

</div>

> [@Rajshree\_Shome](#):
>
> discovery.zen.ping.unicast.hosts: ["","\*\*","","\*"]

What is this? Is this what is in the config or have you altered it to hide the IP addresses?

> [@Rajshree\_Shome](#):
>
> node.master: false

How many of the nodes are master eligible?

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 11:28am UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/16 "2018-04-26T11:28:12Z")

</div>

I have hidden it

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 1:27pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/17 "2018-04-26T13:27:35Z")

</div>

Can anyone help me in creating logstash index in elasticsearch 6.2.2?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 1:35pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/18 "2018-04-26T13:35:35Z")

</div>

Is there anything in the Elasticsearch logs? Is the cluster state green with all nodes being part of the cluster?

---

<div class="post-metadata">

**Author:** ![Rajshree\_Shome](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajshree_shome/32/30506_2.png) [@Rajshree\_Shome](https://discuss.elastic.co/u/Rajshree_Shome)\
**Post date:** [April 26, 2018, 1:53pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/19 "2018-04-26T13:53:13Z")

</div>

yes we are getting but we are not able to able to create logstash index

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 26, 2018, 1:54pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627/20 "2018-04-26T13:54:01Z")

</div>

What error message are you getting when you try to create it? Is there any errors in the logs?

Please describe exactly what you are doing and any errors you see.

[Next page](https://discuss.elastic.co/t/not-able-to-create-index-logstash-in-elasticsearch-6-2-2/129627.md?page=2)
