# Elastic agent indices - ILM Policy Changes

**URL:** <https://discuss.elastic.co/t/elastic-agent-indices-ilm-policy-changes/306320>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management, elastic-agent\
**Created:** [June 3, 2022, 10:03am UTC](https://discuss.elastic.co/t/elastic-agent-indices-ilm-policy-changes/306320 "2022-06-03T10:03:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen\_raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveen_raju/32/81804_2.png) [@praveen\_raju](https://discuss.elastic.co/u/praveen_raju)\
**Post date:** [June 3, 2022, 10:03am UTC](https://discuss.elastic.co/t/elastic-agent-indices-ilm-policy-changes/306320/1 "2022-06-03T10:03:20Z")

</div>

Hello,

We have deployed Elastic Agent on 1000+ VM's, i see default ILM policy is being used " **metrics**" for all the indices created by the elastic agent.

Questions:

1. Can we change the settings directly on the ILM policy " **metrics**" ??? our requirement is to hold data for 90 days and delete right after.

2. If i change the currently ILM policy, will it apply for all the current indices or do i have to expliclity run any command.

Any help will be highly appreciated.

Thanks,

Pravyn

---

<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:** [July 1, 2022, 10:04am UTC](https://discuss.elastic.co/t/elastic-agent-indices-ilm-policy-changes/306320/2 "2022-07-01T10:04:21Z")

</div>

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