# Auto import dangling indices to "no"

**URL:** https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577
**Category:** Elasticsearch
**Created:** [February 27, 2017, 5:43am UTC](https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577 "2017-02-27T05:43:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vamshikrishna\_imp](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@vamshikrishna\_imp](https://discuss.elastic.co/u/vamshikrishna_imp)
#### Post date: [February 27, 2017, 5:43am UTC](https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577/1 "2017-02-27T05:43:36Z")

</div>

I would like to make Auto import dangling indices to "no", can anyone please help me out here, how to do it and which file i need to change. Can you tell me the file location.

---

<div class="post-metadata">

### Author: ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)
#### Post date: [February 27, 2017, 5:46pm UTC](https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577/2 "2017-02-27T17:46:58Z")

</div>

You can add

```auto
gateway.local.auto_import_dangled: no

```

in the elasticsearch.yml and restart ES.

---

<div class="post-metadata">

### Author: ![vamshikrishna\_imp](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@vamshikrishna\_imp](https://discuss.elastic.co/u/vamshikrishna_imp)
#### Post date: [February 28, 2017, 5:07am UTC](https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577/3 "2017-02-28T05:07:42Z")

</div>

Hi jkuang, thanks for your responce.  
I've added "gateway.local.auto\_import\_dangled: no" to elasticsearch.yml. It is working

---

<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: [March 28, 2017, 5:07am UTC](https://discuss.elastic.co/t/auto-import-dangling-indices-to-no/76577/4 "2017-03-28T05:07:48Z")

</div>

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