The action auto create index setting is configured to be restrictive – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.12

Briefly, this error occurs when the Elasticsearch setting “action.auto_create_index” is set to false or restrictive. This setting controls whether new indices can be automatically created when a document is indexed into a non-existing index. If set to false, you must manually create all indices before indexing documents into them. To resolve this issue, you can either manually create the index before indexing documents or change the “action.auto_create_index” setting to true or less restrictive, allowing automatic index creation. However, be aware that automatic index creation might lead to unexpected index creation.

This guide will help you check for common problems that cause the log ” the [action.auto_create_index] setting is configured to be restrictive [{}]. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “the [action.auto_create_index] setting is configured to be restrictive [{}]. ” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            if (matched == false) {
                throw new IllegalArgumentException(errorMessage);
        logger.warn("the [action.auto_create_index] setting is configured to be restrictive [{}]. " +
                " for the next 6 months daily history indices are allowed to be created; but please make sure" +
                " that any future history indices after 6 months with the pattern " +
                "[.watcher-history-yyyy.MM.dd] are allowed to be created"; value);