# How to disable automatic index creation

**URL:** <https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772>\
**Category:** Elasticsearch\
**Created:** [November 4, 2011, 12:01pm UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772 "2011-11-04T12:01:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [November 4, 2011, 12:01pm UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/1 "2011-11-04T12:01:31Z")

</div>

I tried to find it in the guide but failed: Is there a way to configure ES \*  
_not_\* to automatically create indexes (e.g. when indexing content of a non  
existing index). I need to control index creation and would like to reject  
indexing requests that refer to non existing indexes.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [November 4, 2011, 12:18pm UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/2 "2011-11-04T12:18:37Z")

</div>

On Fri, 2011-11-04 at 05:01 -0700, Jan Fiedler wrote:

> I tried to find it in the guide but failed: Is there a way to  
> configure ES _not_ to automatically create indexes (e.g. when indexing  
> content of a non existing index). I need to control index creation and  
> would like to reject indexing requests that refer to non existing  
> indexes.

Add this to config/elasticsearch.yml:

action.auto\_create\_index: 0

clint

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [November 4, 2011, 12:45pm UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/3 "2011-11-04T12:45:19Z")

</div>

Awesome! Works like a charm. Is there any place (beside source code) where  
I could have found this property?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 8, 2011, 3:09am UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/4 "2011-11-08T03:09:43Z")

</div>

I am not sure it is documented..., it should be documented in the index API  
at the very least. Can you open an issue?

On Fri, Nov 4, 2011 at 2:45 PM, Jan Fiedler [fiedler.jan@gmail.com](mailto:fiedler.jan@gmail.com) wrote:

> Awesome! Works like a charm. Is there any place (beside source code) where  
> I could have found this property?

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [November 8, 2011, 8:39am UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/5 "2011-11-08T08:39:22Z")

</div>

Created: [Provide documentation on index action settings · Issue #1445 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1445)

On Tue, Nov 8, 2011 at 4:09 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> I am not sure it is documented..., it should be documented in the index  
> API at the very least. Can you open an issue?
> 
> On Fri, Nov 4, 2011 at 2:45 PM, Jan Fiedler [fiedler.jan@gmail.com](mailto:fiedler.jan@gmail.com) wrote:
> 
> > Awesome! Works like a charm. Is there any place (beside source code)  
> > where I could have found this property?

---

<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, 3:49am UTC](https://discuss.elastic.co/t/how-to-disable-automatic-index-creation/5772/6 "2017-07-06T03:49:36Z")

</div>


