# Different ILM-Policies for "some" Elastic Agents

**URL:** <https://discuss.elastic.co/t/different-ilm-policies-for-some-elastic-agents/315348>\
**Category:** Elastic Agent\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 28, 2022, 9:55am UTC](https://discuss.elastic.co/t/different-ilm-policies-for-some-elastic-agents/315348 "2022-09-28T09:55:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoKu](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@BoKu](https://discuss.elastic.co/u/BoKu)\
**Post date:** [September 28, 2022, 9:55am UTC](https://discuss.elastic.co/t/different-ilm-policies-for-some-elastic-agents/315348/1 "2022-09-28T09:55:32Z")

</div>

Hello there,

let's say i do have an Department Networking. Their servers get an elastic-agent, like every other non-networking server, but this Department wants to delete their logs after less days then any other departmant.  
Is there a way to assign different policys to a set of elastic agents and how can i differentiate between the depatments?

Thanks in advance?

Greetings  
Boris

---

<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 26, 2022, 9:56am UTC](https://discuss.elastic.co/t/different-ilm-policies-for-some-elastic-agents/315348/2 "2022-10-26T09:56:32Z")

</div>

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