Briefly, this error occurs when Elasticsearch is unable to retrieve the usage data for the machine learning inference ingest processor. This could be due to issues with the machine learning module or the ingest pipeline. To resolve this, you can check the status of the machine learning jobs and ensure they are running correctly. Also, verify the configuration of the ingest pipelines. If the issue persists, consider restarting the Elasticsearch cluster or upgrading to a newer version if you’re using an outdated one.
This guide will help you check for common problems that cause the log ” Failed to get inference ingest usage to include in ML usage ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “Failed to get inference ingest usage to include in ML usage” classname is MachineLearningFeatureSet.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
getModelsRequest.setPageParams(new PageParams(0; 10_000)); ActionListenernodesStatsListener = ActionListener.wrap(response -> { addInferenceIngestUsage(response; inferenceUsage); client.execute(GetTrainedModelsAction.INSTANCE; getModelsRequest; trainedModelsListener); }; e -> { logger.warn("Failed to get inference ingest usage to include in ML usage"; e); client.execute(GetTrainedModelsAction.INSTANCE; getModelsRequest; trainedModelsListener); }); // Step 4. Extract usage from data frame analytics configs and then request ingest node stats String[] ingestNodes = ingestNodes(state);
[ratemypost]