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

Opster Team

Aug-23, Version: 6.8-6.8

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, it prevents automatic index creation, causing this error. To resolve this issue, you can either set “action.auto_create_index” to true to allow automatic index creation, or manually create the index before indexing documents into it. Alternatively, you can specify a pattern of index names to be auto-created.

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 Watcher.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

}
            if (!matched) {
                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);
    }

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.