Briefly, this error occurs when you’re trying to use a feature or action that is not included in your current Elasticsearch license. Elasticsearch offers different licenses with varying features, and some actions are only available in certain licenses. To resolve this issue, you can either upgrade your Elasticsearch license to a version that includes the action you’re trying to use, or find an alternative way to achieve your goal using the features available in your current license.
This guide will help you check for common problems that cause the log ” [{}] action is not available in the current license ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, license.
Log Context
Log “[{}] action is not available in the current license” classname is SearchableSnapshotAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
preActionBranchingKey; checkNoWriteIndex; nextStepKey; (index; clusterState) -> { if (SEARCHABLE_SNAPSHOT_FEATURE.checkWithoutTracking(licenseState) == false) { logger.error("[{}] action is not available in the current license"; SearchableSnapshotAction.NAME); throw LicenseUtils.newComplianceException("searchable-snapshots"); } IndexMetadata indexMetadata = clusterState.getMetadata().index(index); assert indexMetadata != null : "index " + index.getName() + " must exist in the cluster state";