Failed to get inference usage to include in ML usage – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.5-8.9

Briefly, this error occurs when Elasticsearch is unable to retrieve the inference usage data for Machine Learning (ML) usage. This could be due to issues with the ML module, such as incorrect configuration or network connectivity problems. To resolve this issue, you can check the ML settings in your Elasticsearch configuration, ensure that the ML module is properly installed and enabled, and verify that your network settings allow for proper communication. Additionally, check your Elasticsearch logs for any related errors that might provide more information about the problem.

This guide will help you check for common problems that cause the log ” Failed to get inference 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 usage to include in ML usage” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            e -> {
                logger.warn("Failed to get inference usage to include in ML usage"; e);
                    new XPackUsageFeatureResponse(
                        new MachineLearningFeatureSetUsage(


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?