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.
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 TokenBaseRestHandler.java.
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 { logger.info("Security tokens are not available under the current [{}] license"; licenseState.getOperationMode().description()); return LicenseUtils.newComplianceException("security tokens"); } } }
[ratemypost]