# Index name conventions

**URL:** <https://discuss.elastic.co/t/index-name-conventions/133930>\
**Category:** Elasticsearch\
**Created:** [May 30, 2018, 7:06pm UTC](https://discuss.elastic.co/t/index-name-conventions/133930 "2018-05-30T19:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Herrera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_herrera/32/53209_2.png) [@Sebastian\_Herrera](https://discuss.elastic.co/u/Sebastian_Herrera)\
**Post date:** [May 30, 2018, 7:06pm UTC](https://discuss.elastic.co/t/index-name-conventions/133930/1 "2018-05-30T19:06:54Z")

</div>

Hi all, can anyone tell me why elastcisearch always add the date in the index name, is there any performance reason or is only because they like

Regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 30, 2018, 10:20pm UTC](https://discuss.elastic.co/t/index-name-conventions/133930/2 "2018-05-30T22:20:52Z")

</div>

That's not Elasticsearch, it'd be the client that is requesting the index to be created, eg Logstash.

It's done for a few reasons;

1. Index management, so you can delete data after a given date. Deleting an index is much easier than deleting many documents in an index.
2. (In the past) When you made a query with a date range, Elasticsearch and Kibana used to use the date in the index name (if it had one) to only query the exact index range it needed.

---

<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:** [June 27, 2018, 10:20pm UTC](https://discuss.elastic.co/t/index-name-conventions/133930/3 "2018-06-27T22:20:53Z")

</div>

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