Settings and are deprecated. Index settings from your old indices have been updated to record the fact that they – How to solve related issues

Opster Team

Feb-20, Version: 1.7-8.0

Before you begin reading this guide, we recommend you run Elasticsearch Error Check-Up which analyzes 2 JSON files to detect many errors.

Briefly, this error message indicates that the settings and mappings used by Elasticsearch indices are deprecated. To resolve the issue, the indices should be updated to use the new settings and mappings.

To easily locate the root cause and resolve this issue try AutoOps for Elasticsearch & OpenSearch. It diagnoses problems by analyzing hundreds of metrics collected by a lightweight agent and offers guidance for resolving them. Take a self-guided product tour to see for yourself (no registration required).

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);
        }
    }

    /**




 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content