# Multiple data locations

**URL:** <https://discuss.elastic.co/t/multiple-data-locations/126481>\
**Category:** Elasticsearch\
**Created:** [April 3, 2018, 12:10am UTC](https://discuss.elastic.co/t/multiple-data-locations/126481 "2018-04-03T00:10:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [April 3, 2018, 12:10am UTC](https://discuss.elastic.co/t/multiple-data-locations/126481/1 "2018-04-03T00:10:01Z")

</div>

Can elasticsearch be configured in such a way that it first creates the index for the day in one location and then at the end of the day it to an archive location ?

For example:

- At the start of a new day Elasticsearch creates "myindex--2018.04.02" on /mount1
- At the end of the day Elasticsearch moves "myindex--2018.04.02" to /mount2
- Both locations should be available for search
- The process repeats

If Elasticsearch does not have a feature like this built in, would I do the following:

- Add two locations for the Elasticsearch data
- Write a script that runs at the end of the day  
\*\* The script closes the previous days index  
\*\* The script moves the previous days index to the new location  
\*\* The script opens the previous days index (now that it is in the new location)
- The process repeats the next day

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 3, 2018, 2:47am UTC](https://discuss.elastic.co/t/multiple-data-locations/126481/2 "2018-04-03T02:47:47Z")

</div>

You can have a hot/warm architecture with elasticsearch.

This blog post might be useful : [https://www.elastic.co/blog/hot-warm-architecture](https://www.elastic.co/blog/hot-warm-architecture)

---

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [April 3, 2018, 1:05pm UTC](https://discuss.elastic.co/t/multiple-data-locations/126481/3 "2018-04-03T13:05:51Z")

</div>

Thanks! I stumbled upon it as well. Looks like exactly what I had in mind. I will give the hot-warm architecture a try.

---

<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 1, 2018, 1:06pm UTC](https://discuss.elastic.co/t/multiple-data-locations/126481/4 "2018-05-01T13:06:02Z")

</div>

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