# Elasticsearch reindexing data

**URL:** <https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029>\
**Category:** Elasticsearch\
**Created:** [November 22, 2019, 8:06am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029 "2019-11-22T08:06:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmira\_meriem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zmira_meriem/32/49360_2.png) [@zmira\_meriem](https://discuss.elastic.co/u/zmira_meriem)\
**Post date:** [November 22, 2019, 8:06am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/1 "2019-11-22T08:06:41Z")

</div>

Hi!!  
i want to reindex data to elasticsearch for weekly or monthly indices,because i have problem with java space (memory)  
ps : i have one node  
how can i do that plz ????

---

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [November 22, 2019, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/2 "2019-11-22T08:32:33Z")

</div>

Hi @zmira_meriem.

Thank you !!

what mean ? here  
`i want to reindex data to elasticsearch for weekly or monthly`

please provide more details here about your subject!!

`you want to update index weekly something like or diff?`

Thanks  
HadoopHelp

---

<div class="post-metadata">

**Author:** ![zmira\_meriem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zmira_meriem/32/49360_2.png) [@zmira\_meriem](https://discuss.elastic.co/u/zmira_meriem)\
**Post date:** [November 22, 2019, 8:38am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/3 "2019-11-22T08:38:36Z")

</div>

hi @rameshkr1994 thnx for u r reply,, by default elasticsearch collect data daily, i want to collect weekly or monthly

---

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [November 22, 2019, 8:41am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/4 "2019-11-22T08:41:47Z")

</div>

Hi @zmira_meriem.

you need to Config logstash.conf file and schedule IT what You want ???

`like this : schedule => "*/20 * * * * *" i fiven for 20 min in my use case.`

Thanks  
HadoopHelp

---

<div class="post-metadata">

**Author:** ![zmira\_meriem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zmira_meriem/32/49360_2.png) [@zmira\_meriem](https://discuss.elastic.co/u/zmira_meriem)\
**Post date:** [November 22, 2019, 9:37am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/5 "2019-11-22T09:37:59Z")

</div>

@rameshkr1994  
i don't use logstash i use just elasticsearch

---

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [November 22, 2019, 9:43am UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/6 "2019-11-22T09:43:45Z")

</div>

Hi @zmira_meriem.

Thanks

`but how you are collecting data daily ?`

`could you please share the code here`

This is something diff i think!!!

Thanks  
HadoopHelp

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [November 22, 2019, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/7 "2019-11-22T13:45:47Z")

</div>

@zmira_meriem,

It could be worth looking into using [Index Lifecycle Management](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html), which can be setup to switch an alias over to a new index following either a time based or size based rule (or both). There is a guide for [how to migrate to using ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-with-existing-indices.html) too.

---

<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:** [December 20, 2019, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-reindexing-data/209029/8 "2019-12-20T13:45:49Z")

</div>

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