# Change index name and policy name to use

**URL:** <https://discuss.elastic.co/t/change-index-name-and-policy-name-to-use/205406>\
**Category:** Beats\
**Created:** [October 28, 2019, 5:47am UTC](https://discuss.elastic.co/t/change-index-name-and-policy-name-to-use/205406 "2019-10-28T05:47:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticnubie](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@elasticnubie](https://discuss.elastic.co/u/elasticnubie)\
**Post date:** [October 28, 2019, 5:47am UTC](https://discuss.elastic.co/t/change-index-name-and-policy-name-to-use/205406/1 "2019-10-28T05:47:57Z")

</div>

I wanna change the index name and the lifecycle policy name to use of packetbeat to my own.

- index name: packetbeat-7.4.1-2019.10.28 to dns-2019.10.28
- ILM Policy: packetbeat-7.4.1 to ilm-dns (I created)

1. I first created ILM Policy named " **dns-ilm**" using kibana's "Index Lifecycle Policies" menu

2. and then I configured packetbeat.yml file like this

```auto
setup.ilm.enabled: true
setup.ilm.rollover_alias: "dns"
setup.ilm.pattern: "{now/d}-000001"
setup.ilm.policy_name: "ilm-dns" // It try to overwrite the policy! when I checked the packetbeat log.
                                 // Why? I just wanna use it!

```

1. start packetbeat, index name is changed to "dns-2019.10.28"  
but Lifecycle policy didn't change, is still "packetbeat-7.4.1"

How can I change the lifecycle policy to waht I created?

please, help me.

---

<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:** [November 25, 2019, 7:56am UTC](https://discuss.elastic.co/t/change-index-name-and-policy-name-to-use/205406/2 "2019-11-25T07:56:19Z")

</div>

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