# Cannot create index after installing x-pack

**URL:** https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419
**Category:** Elasticsearch
**Created:** [June 22, 2017, 9:35am UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419 "2017-06-22T09:35:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bhavna\_jha](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bhavna\_jha](https://discuss.elastic.co/u/bhavna_jha)
#### Post date: [June 22, 2017, 9:35am UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/1 "2017-06-22T09:35:37Z")

</div>

Hi , I am not able to create index after installing x-pack, I keep getting this error :  
"error":{"root\_cause":[{"type":"index\_not\_found\_exception","reason":"no such index","resource.type":"index\_or\_alias","[resource.id](http://resource.id)":"studentInfo","index\_uuid":"_na_","index":"studentInfo"}],"type":"index\_not\_found\_exception","reason":"no such index","resource.type":"index\_or\_alias","[resource.id](http://resource.id)":"studentInfo","index\_uuid":"_na_","index":"studentInfo"},"status":404}

my .conf file is  
output{  
stdout { codec =\> json\_lines }  
elasticsearch{  
#protocol =\> "http"  
"hosts" =\> "localhost:9200"  
"user" =\> elastic  
"password" =\> changeme  
"index" =\> "studentInfo"  
"document\_type" =\> "data"  
}  
}

Please Help  
Thanks in advance  
Bhavna Jha

---

<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: [June 30, 2017, 6:47am UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/2 "2017-06-30T06:47:29Z")

</div>

Not sure what is the relationship with x-pack.

Where exactly this error message is coming from?

---

<div class="post-metadata">

### Author: ![bhavna\_jha](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bhavna\_jha](https://discuss.elastic.co/u/bhavna_jha)
#### Post date: [July 5, 2017, 11:41am UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/3 "2017-07-05T11:41:53Z")

</div>

Hi David,

I installed x-pack also included the user and password in my conf file but as soon as i try to create index pattern using logstash i get index\_not\_found\_exception.

I have connected mySQL to elasticsearch through logstash.

---

<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: [July 5, 2017, 12:03pm UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/4 "2017-07-05T12:03:16Z")

</div>

Did you follow the steps described there?

[https://www.elastic.co/guide/en/x-pack/current/logstash.html](https://www.elastic.co/guide/en/x-pack/current/logstash.html)

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [July 5, 2017, 12:59pm UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/5 "2017-07-05T12:59:00Z")

</div>

It looks like you have configured `action.auto_create_index` to be too restrictive.

The X-Pack installation instructions advise you to modify that setting _"If you have disabled automatic index creation in Elasticsearch"_, but it doesn't sound like that is true for you.

You best solution is going to be to remove that setting from your `elasticsearch.yml`, unless you have a particular need for it, then you can just leave it as the default (unspecified) value which will allow all indices to be created.

If you have a specific reason to set it, then you will need make sure you include `logstash-*` in the list of allowed indices.

---

<div class="post-metadata">

### Author: ![bhavna\_jha](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bhavna\_jha](https://discuss.elastic.co/u/bhavna_jha)
#### Post date: [July 5, 2017, 1:38pm UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/6 "2017-07-05T13:38:54Z")

</div>

@TimV I did remove action.auto\_create\_index from my elasticsearch.yml but still getting same 404 error on creating index via logstash.

Do I need to include something explicitly in elasticsearch.yml or kibana.yml ?

---

<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: [August 2, 2017, 1:39pm UTC](https://discuss.elastic.co/t/cannot-create-index-after-installing-x-pack/90419/7 "2017-08-02T13:39:06Z")

</div>

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