# Enrich policy execution interval in Elasticsearch 8.5

**URL:** <https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863>\
**Category:** Elasticsearch\
**Created:** [November 26, 2022, 3:53pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863 "2022-11-26T15:53:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_lindroos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_lindroos/32/97640_2.png) [@Jan\_lindroos](https://discuss.elastic.co/u/Jan_lindroos)\
**Post date:** [November 26, 2022, 3:53pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/1 "2022-11-26T15:53:01Z")

</div>

Hi, the elastic docs for 8.5 says that by default the execution policies are executed every 15 minutes, but as far as I can see from the timestamp of the enrich index, the policy has not been executed after I initially executed it on creation (4 days ago). Do the policies still have to be executed manually every time?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 26, 2022, 4:20pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/2 "2022-11-26T16:20:51Z")

</div>

Hi @Jan_lindroos Welcome to the community.

Can you show me the documentation that refers to the 15 minutes?

It is my understanding / experience that enrich policies are only executed by explicitly calling the API.

Perhaps this is something new...

There are specific steps if you want to update an enrich policy.

---

<div class="post-metadata">

**Author:** ![Jan\_lindroos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_lindroos/32/97640_2.png) [@Jan\_lindroos](https://discuss.elastic.co/u/Jan_lindroos)\
**Post date:** [November 26, 2022, 5:09pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/3 "2022-11-26T17:09:24Z")

</div>

Hi, thanks!

I think it might be new as I didn't find it in the 7.17 docs:  
[Execute enrich policy API | Elasticsearch Guide [8.5] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html)

> Once created, you cannot update or index documents to an enrich index. Instead, update your source indices and execute the enrich policy again. This creates a new enrich index from your updated source indices. The previous enrich index will deleted with a delayed maintenance job. By default this is done every 15 minutes.

Maybe I misunderstood. If it doesn't autoupdate is it sufficient to re-execute the enrich policy regularly to ensure transform enrich data is up to date?

Thanks again!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 26, 2022, 5:30pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/4 "2022-11-26T17:30:26Z")

</div>

Yes!

See [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-setup.html#update-enrich-policies) how to update.

That 15 minutes refers to cleaning up old and enrich policies... Kinda poorly worded.

---

<div class="post-metadata">

**Author:** ![Jan\_lindroos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_lindroos/32/97640_2.png) [@Jan\_lindroos](https://discuss.elastic.co/u/Jan_lindroos)\
**Post date:** [November 26, 2022, 5:36pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/5 "2022-11-26T17:36:46Z")

</div>

Aha, makes sense

Thanks a lot for the quick replies, awesome!

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 27, 2022, 1:05pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/6 "2022-11-27T13:05:15Z")

</div>

> [@Jan\_lindroos](#):
>
> Do the policies still have to be executed manually every time?

There is this [issue](https://github.com/elastic/elasticsearch/issues/50071) from 2019, with a feature request to allow scheduling of policy executions, but it seems that there is no work on it yet.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2022, 1:05pm UTC](https://discuss.elastic.co/t/enrich-policy-execution-interval-in-elasticsearch-8-5/319863/7 "2022-12-25T13:05:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
