Settings and are deprecated Index settings from your old indices have been updated to record the fact that they – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when Elasticsearch detects deprecated settings in your old indices during an upgrade process. Elasticsearch automatically updates these settings, but it’s a warning that you’re using outdated configurations. To resolve this issue, you should identify the deprecated settings in your old indices and update them to the current version’s standards. This could involve modifying the index settings or reindexing your data. Always ensure to check the Elasticsearch documentation for any changes in settings when upgrading to avoid such warnings.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” Settings [{}] and [{}] are deprecated. Index settings from your old indices have been updated to record the fact that they ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, index, metadata, settings and upgrade.

Log Context

Log “Settings [{}] and [{}] are deprecated. Index settings from your old indices have been updated to record the fact that they” classname is MetaDataIndexUpgradeService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

} else {
            pre20HashFunction = DjbHashFunction.class;
        }
        pre20UseType = settings.getAsBoolean(DEPRECATED_SETTING_ROUTING_USE_TYPE; null);
        if (hasCustomPre20HashFunction || pre20UseType != null) {
            logger.warn("Settings [{}] and [{}] are deprecated. Index settings from your old indices have been updated to record the fact that they "
                    + "used some custom routing logic; you can now remove these settings from your `elasticsearch.yml` file"; DEPRECATED_SETTING_ROUTING_HASH_FUNCTION; DEPRECATED_SETTING_ROUTING_USE_TYPE);
        }
    }

    /**

 

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?

Get expert answers on Elasticsearch/OpenSearch