# How to monitor cause of deletion of documents in index?

**URL:** <https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052>\
**Category:** Elasticsearch\
**Created:** [October 19, 2021, 5:45am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052 "2021-10-19T05:45:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Post date:** [October 19, 2021, 5:45am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052/1 "2021-10-19T05:45:36Z")

</div>

Dears,

Is there any way to monitor process of deletion of documents from index?  
I'm asking about it because of from few days I observed this odd behavior. Similar situation I had when doc id was the same for few documents. I wonder what the cause is this time. Any idea?

Best Regards,  
Dan

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 19, 2021, 8:58am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052/2 "2021-10-19T08:58:02Z")

</div>

Elasticsearch doesn't delete docs, unless you are on an old version and using TTL.  
Otherwise something is telling Elasticsearch to delete them.

Do you have access control on your cluster?

---

<div class="post-metadata">

**Author:** ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Post date:** [October 19, 2021, 9:03am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052/3 "2021-10-19T09:03:45Z")

</div>

@warkolm  
Yes, I have access control on my cluster.

---

<div class="post-metadata">

**Author:** ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Post date:** [October 19, 2021, 9:36am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052/4 "2021-10-19T09:36:53Z")

</div>

In my infrastructure few filebeats send applications logs to ELK, users have access to Kibana to see the logs with read only rights.

---

<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:** [November 16, 2021, 9:37am UTC](https://discuss.elastic.co/t/how-to-monitor-cause-of-deletion-of-documents-in-index/287052/5 "2021-11-16T09:37:18Z")

</div>

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