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 an Elasticsearch policy has finished executing. It’s not an error message but an informational message indicating that a specific policy (like an index lifecycle management policy) has completed its execution. If you’re seeing unexpected results, check the policy’s configuration and the state of your indices. To resolve, you may need to adjust your policy settings, re-run the policy, or investigate further if there are underlying issues with your indices.
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 ” Policy [{}]: Policy execution complete ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “Policy [{}]: Policy execution complete” classname is EnrichPolicyRunner.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
if (indices.length > 0) { aliasToggleRequest.addAliasAction(IndicesAliasesRequest.AliasActions.remove().indices(indices).alias(enrichIndexBase)); } aliasToggleRequest.addAliasAction(IndicesAliasesRequest.AliasActions.add().index(destinationIndexName).alias(enrichIndexBase)); enrichOriginClient().admin().indices().aliases(aliasToggleRequest; listener.delegateFailure((l; r) -> { logger.info("Policy [{}]: Policy execution complete"; policyName); ExecuteEnrichPolicyStatus completeStatus = new ExecuteEnrichPolicyStatus(ExecuteEnrichPolicyStatus.PolicyPhases.COMPLETE); task.setStatus(completeStatus); l.onResponse(completeStatus); })); }