The realm is not available under the current license – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when you’re trying to use a feature in Elasticsearch that is not supported by your current license. Elasticsearch has different licenses with varying features, and some realms (security features) are only available under certain licenses. To resolve this issue, you can either upgrade your Elasticsearch license to a version that supports the realm you’re trying to use, or you can modify your configuration to only use features that are supported by your current license.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” The ‘{}’ realm is not available under the current license ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, license, rest.

Log Context

Log “The ‘{}’ realm is not available under the current license” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        if (failedFeature != null) {
            return failedFeature;
        } else if (Security.PKI_REALM_FEATURE.checkWithoutTracking(licenseState)) {
            return null;
        } else {
  "The '{}' realm is not available under the current license"; PkiRealmSettings.TYPE);
            return LicenseUtils.newComplianceException(PkiRealmSettings.TYPE);



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?