Security tokens are 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 security features such as token-based authentication in Elasticsearch, which are not available under your current license. Elasticsearch’s advanced security features are only available under a Gold or Platinum subscription. To resolve this issue, you can either upgrade your Elasticsearch license to Gold or Platinum, or use basic authentication methods that are available under the free Basic license. Alternatively, you can use third-party security plugins compatible with 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 ” Security tokens are 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 “Security tokens are 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.TOKEN_SERVICE_FEATURE.check(licenseState)) {
            return null;
        } else {
  "Security tokens are not available under the current [{}] license"; licenseState.getOperationMode().description());
            return LicenseUtils.newComplianceException("security tokens");


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?