# Reuse the old index data

**URL:** <https://discuss.elastic.co/t/reuse-the-old-index-data/159532>\
**Category:** Elasticsearch\
**Created:** [December 5, 2018, 12:42pm UTC](https://discuss.elastic.co/t/reuse-the-old-index-data/159532 "2018-12-05T12:42:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_singh/32/87160_2.png) [@Rahul\_Singh](https://discuss.elastic.co/u/Rahul_Singh)\
**Post date:** [December 5, 2018, 12:42pm UTC](https://discuss.elastic.co/t/reuse-the-old-index-data/159532/1 "2018-12-05T12:42:58Z")

</div>

Hi,  
I am new to elastic search,  
I have recently started getting the red error message in kibana dashboard for elastic search.So i stopped the elastic search service and restarted it. now the restart gets stuck every time with some error of java heap memory out of bound error for replication of shard. The machine is taking data from kafka via logstash. I have kept the index file to some other location now and restarted the ES. its working fine but the old indices are lost. How can i put those indices back to ES. please help!

Thanks in advance

---

<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:** [December 5, 2018, 4:33pm UTC](https://discuss.elastic.co/t/reuse-the-old-index-data/159532/2 "2018-12-05T16:33:09Z")

</div>

This is quite vague so it's hard to know what's going on:

> [@Rahul\_Singh](#):
>
> started getting the red error message in kibana dashboard for Elasticsearch

What did the error message say?

> [@Rahul\_Singh](#):
>
> some error of java heap memory out of bound error for replication of shard

What did the error message say?

> [@Rahul\_Singh](#):
>
> I have kept the index file

What do you mean "the index file"? What do you mean by "kept"? Can you share the commands you used?

---

<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:** [January 2, 2019, 4:33pm UTC](https://discuss.elastic.co/t/reuse-the-old-index-data/159532/3 "2019-01-02T16:33:10Z")

</div>

Closed on January 2, 2019, 4:33pm UTC

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