One or more of the ML internal aliases could not be made hidden – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8-8.9

Briefly, this error occurs when Elasticsearch Machine Learning (ML) fails to hide one or more of its internal aliases. This could be due to insufficient permissions, a configuration issue, or a problem with the Elasticsearch version. To resolve this, ensure that the user has the necessary permissions to modify aliases. Also, check the Elasticsearch configuration for any errors and ensure that the version of Elasticsearch supports hidden aliases. If the problem persists, consider upgrading Elasticsearch or disabling the ML feature if it’s not in use.

This guide will help you check for common problems that cause the log ” One or more of the ML internal aliases could not be made hidden. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, aliases.

Log Context

Log “One or more of the ML internal aliases could not be made hidden.” classname is MlInitializationService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        String[] mlHiddenIndexPatterns = MachineLearning.getMlHiddenIndexPatterns();

        // Step 5: Handle errors encountered on the way.
        ActionListener finalListener = ActionListener.wrap(updateAliasesResponse -> {
            if (updateAliasesResponse.isAcknowledged() == false) {
                logger.warn("One or more of the ML internal aliases could not be made hidden.");
                return;
            }
            mlInternalIndicesHidden.set(true);
        }; e -> logger.warn("An error occurred while making ML internal indices and aliases hidden"; e));

 

 [ratemypost]