# Rename index

**URL:** <https://discuss.elastic.co/t/rename-index/226853>\
**Category:** Elasticsearch\
**Tags:** beats-module\
**Created:** [April 7, 2020, 8:29am UTC](https://discuss.elastic.co/t/rename-index/226853 "2020-04-07T08:29:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)\
**Post date:** [April 7, 2020, 8:29am UTC](https://discuss.elastic.co/t/rename-index/226853/1 "2020-04-07T08:29:31Z")

</div>

Hi all,

Currently, I,m trying to change the index name in a way that every server I connect is a prefix of the index. For example: currently, I just have auditbeat-7.6.1-2020.03.27-000001 as index name, but I want to have serverA-auditbeat-7.6.1-2020.03.27-000001  
How do I do this? and can I still have ILM enabled while doing so?  
Thanks a lot in advance 🙂

---

<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:** [April 7, 2020, 8:38am UTC](https://discuss.elastic.co/t/rename-index/226853/2 "2020-04-07T08:38:25Z")

</div>

Why do you want to have an index per server? It sounds like this will result in a large number of small indices [which waste resouces and is inefficient](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster). I would recommend reconsidering this.

---

<div class="post-metadata">

**Author:** ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)\
**Post date:** [April 7, 2020, 8:43am UTC](https://discuss.elastic.co/t/rename-index/226853/3 "2020-04-07T08:43:29Z")

</div>

I should say that I explained it wrong, Not exactly per server, but per 'client' As we got infrastructure for multiple clients and I want to give them access to certain dashboards, but to view the data I need to give the access to the index. And I don't want them to view data from other customers. Thanks for the quick reply! @Christian_Dahlqvist

---

<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:** [April 7, 2020, 10:37am UTC](https://discuss.elastic.co/t/rename-index/226853/4 "2020-04-07T10:37:44Z")

</div>

I suspect you will need to configure this in Auditbeat so that it uses the correct index. I suspect this should also set up ILM correctly, but in worst case you may need to do so manually yourself. I would recommend you open a thread under the Beats category for this.

---

<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:** [May 5, 2020, 10:37am UTC](https://discuss.elastic.co/t/rename-index/226853/5 "2020-05-05T10:37:53Z")

</div>

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