# How to get iml policy's use by in ES 7.10?

**URL:** <https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 12, 2023, 3:36am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776 "2023-09-12T03:36:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsop\_479](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vsop\_479](https://discuss.elastic.co/u/vsop_479)\
**Post date:** [September 12, 2023, 3:36am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776/1 "2023-09-12T03:36:00Z")

</div>

The \_ilm/policy/my\_policy api can get which indices use this policy in current version, but in 7.10, the response does not contains in\_use\_by info.  
How to get the similar info(in\_use\_by) in ES 7.10?  
I noticed Kibana can show the policy's linked indices count, how does Kibana support that?

---

<div class="post-metadata">

**Author:** ![vsop\_479](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vsop\_479](https://discuss.elastic.co/u/vsop_479)\
**Post date:** [September 13, 2023, 5:59am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776/2 "2023-09-13T05:59:33Z")

</div>

It seems kibana(7.10) use /\*/\_ilm/explain to collect all indices ilm explain info and calculate linked indices' count.  
BTW ES(7.17) use lifecycle.name in index settings in cluster state to calculate usage.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 13, 2023, 6:07am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776/3 "2023-09-13T06:07:03Z")

</div>

I would recommend you upgrade to at least 7.17 as the version you are using is quite old and has been EOL a long time.

---

<div class="post-metadata">

**Author:** ![vsop\_479](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vsop\_479](https://discuss.elastic.co/u/vsop_479)\
**Post date:** [September 13, 2023, 6:20am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776/4 "2023-09-13T06:20:20Z")

</div>

Thanks for your suggestion. Upgrade is in my schedule.

---

<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:** [October 11, 2023, 6:21am UTC](https://discuss.elastic.co/t/how-to-get-iml-policys-use-by-in-es-7-10/342776/5 "2023-10-11T06:21:08Z")

</div>

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