Updating indices ttl interval from to – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when there is an attempt to update the Time to Live (TTL) interval for indices in Elasticsearch. TTL is a feature that allows automatic deletion of documents after a certain period. However, this feature has been deprecated since version 5.0. To resolve this issue, you can either downgrade to a version that supports TTL or implement a custom deletion process using a tool like Curator or by writing a script that uses the Delete By Query API.

This guide will help you check for common problems that cause the log ” updating indices.ttl.interval from [{}] to [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: indices.

Log Context

Log “updating indices.ttl.interval from [{}] to [{}]” classname is IndicesTTLService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         
Override
        public void onRefreshSettings(Settings settings) {
            final TimeValue currentInterval = IndicesTTLService.this.purgerThread.getInterval();
            final TimeValue interval = settings.getAsTime(INDICES_TTL_INTERVAL; currentInterval);
            if (!interval.equals(currentInterval)) {
                logger.info("updating indices.ttl.interval from [{}] to [{}]";currentInterval; interval);
                IndicesTTLService.this.purgerThread.resetInterval(interval);

            }
        }
    }



 

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?