# My index keep deleting for some reason

**URL:** <https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527>\
**Category:** Kibana\
**Created:** [May 11, 2018, 6:17pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527 "2018-05-11T18:17:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 11, 2018, 6:17pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/1 "2018-05-11T18:17:00Z")

</div>

I notice that after some time i have to keep create my index template . Seems it is being automatically removed or delete i dont know about.

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [May 11, 2018, 6:36pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/2 "2018-05-11T18:36:26Z")

</div>

Can you clarify which index template and what your workflow is? Are there any daemons performing maintenance on the cluster?

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 12, 2018, 7:14am UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/3 "2018-05-12T07:14:28Z")

</div>

mine is packetbeat .... actually it was fine for a few days until the last three days ... what i expect is something like /var/lib/elasticsearch/nodes/0/indices/my-index-template-name like packetbeat ... instead i have something like this /var/lib/elasticsearch/nodes/0/indices/RqmWCYYyRjisQ9f6hmgNtQ where my indesx is saved

and this unknown folder keeps eleting for some reason ......

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 12, 2018, 7:20am UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/4 "2018-05-12T07:20:52Z")

</div>

Hi jbudz again ... i check my server elasticsearch log and find this line

[2018-05-12T05:01:53,378][INFO][o.e.c.m.MetaDataDeleteIndexService] [pZaiU7N] [packetbeat-6.2.4-2018.05.12/rHMf8c1lTP6JiRDBz4QALQ] deleting index  
[2018-05-12T05:02:01,231][INFO][o.e.c.m.MetaDataDeleteIndexService] [pZaiU7N] [.kibana/A1P7KhS1QveGMbXGSWBqWQ] deleting index

i believe that is when index was deleted but the reason i dont know ... could a setting but i did not change anything since i first setup

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 15, 2018, 2:37am UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/5 "2018-05-15T02:37:42Z")

</div>

Hi Jbudz any update

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [May 15, 2018, 9:04pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/6 "2018-05-15T21:04:54Z")

</div>

Hey, it does look like something is deleting the index. Did you have any stray DELETE requests? Based on the log timestamps I'm guessing there's something running a `DELETE *` on the cluster.

Can you share what kind of workload the cluster is under?

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 15, 2018, 9:06pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/7 "2018-05-15T21:06:57Z")

</div>

thanks jbudz for info i will check and get back asap

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 21, 2018, 3:45am UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/8 "2018-05-21T03:45:17Z")

</div>

Hi Jbudz  
Sorry but i couldn't find anything that automatically delete my index. How can i check my workload ... actually there is onle one node on the cluster

---

<div class="post-metadata">

**Author:** ![Tzathenah\_Peaneah\_Ha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tzathenah_peaneah_ha/32/30848_2.png) [@Tzathenah\_Peaneah\_Ha](https://discuss.elastic.co/u/Tzathenah_Peaneah_Ha)\
**Post date:** [May 22, 2018, 10:58pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/9 "2018-05-22T22:58:50Z")

</div>

funny thing is this only happen to my 6.2 stack .... i have older version which is work perfect. Now i will send my data to that for now while check my newer version issue ...

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [May 24, 2018, 8:38pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/10 "2018-05-24T20:38:30Z")

</div>

You can try disabling wildcard deletes by setting action.destructive\_requires\_name or locking the index down if you're using the security plugin.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html).

Alternatively if there's a proxy in front you may be able to grab the requesters IP.

---

<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:** [June 21, 2018, 8:40pm UTC](https://discuss.elastic.co/t/my-index-keep-deleting-for-some-reason/131527/11 "2018-06-21T20:40:05Z")

</div>

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