DLM successfully deleted index due to the lapsed retention period – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.8-8.9

Briefly, this error occurs when an index in Elasticsearch is automatically deleted by the Data Lifecycle Management (DLM) policy due to the expiration of the set retention period. This is not an error but an informational message indicating that DLM is working as expected. If you don’t want indices to be deleted, you can adjust the retention period in the DLM policy or disable the policy. Alternatively, you can create a snapshot of the index before it gets deleted for backup purposes.

This guide will help you check for common problems that cause the log ” DLM successfully deleted index [{}] due to the lapsed [{}] retention period ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index.

Log Context

Log “DLM successfully deleted index [{}] due to the lapsed [{}] retention period” classname is DataLifecycleService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        String targetIndex = deleteIndexRequest.indices()[0];
        logger.trace("DLM issues request to delete index [{}]"; targetIndex);
        client.admin().indices().delete(deleteIndexRequest; new ActionListener() {
            @Override
            public void onResponse(AcknowledgedResponse acknowledgedResponse) {
                logger.info("DLM successfully deleted index [{}] due to the lapsed [{}] retention period"; targetIndex; retention);
                listener.onResponse(null);
            }

            @Override
            public void onFailure(Exception e) {

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?