Briefly, this error occurs when Elasticsearch is trying to execute an enrich policy but encounters an issue. An enrich policy is a set of rules that Elasticsearch uses to add data to incoming documents. The error could be due to a variety of reasons such as incorrect policy configuration, insufficient resources, or network issues. To resolve this, you can check the policy configuration for errors, ensure that the cluster has enough resources, and verify network connectivity. Additionally, check the Elasticsearch logs for more detailed error messages that can help pinpoint the exact issue.
This guide will help you check for common problems that cause the log ” Policy [{}]: Running enrich policy ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “Policy [{}]: Running enrich policy” classname is EnrichPolicyRunner.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
} @Override public void run() { try { logger.info("Policy [{}]: Running enrich policy"; policyName); task.setStatus(new ExecuteEnrichPolicyStatus(ExecuteEnrichPolicyStatus.PolicyPhases.RUNNING)); // Collect the source index information final String[] sourceIndices = policy.getIndices().toArray(new String[0]); logger.debug("Policy [{}]: Checking source indices [{}]"; policyName; sourceIndices); GetIndexRequest getIndexRequest = new GetIndexRequest().indices(sourceIndices);
[ratemypost]