Briefly, this error occurs when Elasticsearch is trying to create a machine learning (ml) configuration index, but it’s encountering issues. This could be due to insufficient permissions, lack of disk space, or a network connectivity problem. To resolve this, you can check if the user has the right permissions to create an index, ensure there’s enough disk space, and verify network connectivity. Also, check the Elasticsearch logs for more detailed error messages that can provide additional clues to the problem.
This guide will help you check for common problems that cause the log ” creating the .ml-config index ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “creating the .ml-config index” classname is MlConfigMigrator.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
}; listener::onFailure) ); } private void createConfigIndex(ActionListenerlistener) { logger.info("creating the .ml-config index"); CreateIndexRequest createIndexRequest = new CreateIndexRequest(MlConfigIndex.indexName()); try { createIndexRequest.settings(MlConfigIndex.settings()); createIndexRequest.mapping(SINGLE_MAPPING_NAME; MlConfigIndex.mapping(); XContentType.JSON); createIndexRequest.origin(ML_ORIGIN);