Hello
We’re encountering a critical issue where our custom index (ads_index) is automatically deleted every 3–4 days without any manual action or lifecycle management policies in effect.
Elasticsearch version: 8.18
Single-node instance
Index in question: ads_index
ILM status: disabled for this index
We’ve carefully reviewed the logs and noticed a recurring pattern. Every few days, the index ads_index is deleted automatically, along with another index read_me, and only the read_me index is recreated afterward — our index is not restored in any form.
Here are two such instances:
June 8, 2025
[2025-06-08T23:26:22,052][INFO ][o.e.c.m.MetadataDeleteIndexService] [demosite.com] [ads_index/vYcd1axoQhWSpxI94UW9sA] deleting index [2025-06-08T23:26:22,656][INFO ][o.e.c.m.MetadataDeleteIndexService] [demosite.com] [read_me/bLRUm6yOTZqRIpaQavX3-w] deleting index [2025-06-08T23:26:23,112][INFO ][o.e.c.m.MetadataCreateIndexService] [demosite.com] [read_me] creating index, cause [api], templates [], shards [1]/[1] [2025-06-08T23:26:23,531][INFO ][o.e.c.m.MetadataMappingService] [demosite.com] [read_me/H5OlWKfFTYu_6LDjr16x5g] create_mapping
June 14, 2025
[2025-06-14T22:03:01,803][INFO ][o.e.c.m.MetadataDeleteIndexService] [demosite.com] [ads_index/SMc_M8tkTV-mq8CtEUZJag] deleting index [2025-06-14T22:03:02,245][INFO ][o.e.c.m.MetadataDeleteIndexService] [demosite.com] [read_me/qjy4wXTyT4-D1B1HehE2NQ] deleting index [2025-06-14T22:03:02,588][INFO ][o.e.c.m.MetadataCreateIndexService] [demosite.com] [read_me] creating index, cause [api], templates [], shards [1]/[1] [2025-06-14T22:03:02,862][INFO ][o.e.c.m.MetadataMappingService] [demosite.com] [read_me/WRWCPDnzR9uGuQepFU3_lg] create_mapping
Later that same night:
[2025-06-14T23:01:52,927][INFO ][o.e.c.m.MetadataDeleteIndexService] [demosite.com] [read_me/WRWCPDnzR9uGuQepFU3_lg] deleting index [2025-06-14T23:01:53,037][INFO ][o.e.c.m.MetadataCreateIndexService] [demosite.com] [read_me] creating index, cause [api], templates [], shards [1]/[1] [2025-06-14T23:01:53,213][INFO ][o.e.c.m.MetadataMappingService] [demosite.com] [read_me/j4ww2hEfSm2TnoztJAXTBw] create_mapping
Our index (ads_index) is not recreated automatically. It just disappears silently every few days.
Troubleshooting We Did
Verified that ILM is disabled for ads_index using GET _ilm/explain:
"managed": false
We adjusted and even removed index templates to prevent deletion triggers.
No delete operations are performed from our side or our API clients.
We’ve tried setting index.blocks.write and index.blocks.delete, but the index still gets deleted.
Additionally, we’ve checked server status via systemd:
sudo systemctl status elasticsearch
Active: active (running) since Fri 2025-06-13 00:36:04
This uptime aligns with the moment the last deletion occurred, which hints that maybe a restart or crash is triggering the deletions.
Our Questions
Is there any internal Elastic mechanism or system component that could cause automatic deletion like this?
Could there be a background recovery task that only restores system-like indices (like read_me) but skips user indices?
Could cluster crash recovery or corrupted state during startup be a reason ads_index is not restored?
Is there a way to trace who/what is calling index deletion? We don't see any user action or API log beyond MetadataDeleteIndexService.
We would greatly appreciate any guidance or tools we can use to:
Identify the root cause of these automatic deletions;
Prevent further data loss;
Ensure ads_index is recreated or restored properly if a failure occurs.
I hope for your help, I have been struggling with this bug for almost a month.
Thank you in advance!
Best regards,
Arsen