# Elastic Search Index Name Issue

**URL:** https://discuss.elastic.co/t/elastic-search-index-name-issue/174656
**Category:** Elasticsearch
**Created:** [March 31, 2019, 4:02am UTC](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656 "2019-03-31T04:02:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![code\_blue](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@code\_blue](https://discuss.elastic.co/u/code_blue)
#### Post date: [March 31, 2019, 4:02am UTC](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656/1 "2019-03-31T04:02:45Z")

</div>

We have an index in the format "app-service-log". There are no aliases defined on the index. When I try to create another index with the name "app-service-log1" it is throwing an invalid alias name exception

> Invalid alias name [app-service-log], an index exists with the same name as the alias

Any idea what may be the issue here or i need to check some where else.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 31, 2019, 8:52am UTC](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656/2 "2019-03-31T08:52:57Z")

</div>

I think this indicates that Elasticsearch is trying to create the index `app-service-log1` with an alias called `app-service-log`, which isn't working because there's already an index called `app-service-log`. The aliases used when creating an index come from (a) the index creation request itself and (b) the [index templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html). Could you check these two places to see where this alias is coming from?

---

<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: [April 28, 2019, 8:53am UTC](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656/3 "2019-04-28T08:53:00Z")

</div>

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