# Why Reindex API is not storing events with latest datetime?

**URL:** <https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024>\
**Category:** Elasticsearch\
**Created:** [November 1, 2017, 11:39am UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024 "2017-11-01T11:39:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [November 1, 2017, 11:39am UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024/1 "2017-11-01T11:39:44Z")

</div>

Hi Experts,

I want to reindex my static Index . Here Static means it will get new data only after a month , so for the whole month I want to reindex on daily basis using Curator , so that I can display data in kibana for past 24 hours only . The problem Which I am facing is ,after reindex I still see this index on the date when it was originally created .

My assumption for reindex was is , @timestamp will automatically change to current date .Can someone suggest me how I can achieve this as i want to show this on Kibana dashboard on daily basis ?

Regards  
VG

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 1, 2017, 3:38pm UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024/2 "2017-11-01T15:38:08Z")

</div>

I'm not able to follow your use case description here:

> [@vikas\_gopal](#):
>
> Here Static means it will get new data only after a month , so for the whole month I want to reindex on daily basis using Curator , so that I can display data in kibana for past 24 hours only .

Can you please explain this more thoroughly? Perhaps share your curator action file to help show what you're trying to do?

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [November 14, 2017, 10:00am UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024/3 "2017-11-14T10:00:10Z")

</div>

Sorry for late reply , Actually I want to prepare a dashboard which display data for past 24 hours . Problem here is some of the panels of this dashboard is blank because the index from which it pickup the data is 10 days old .

Now to cope up with this situation I want to re-index that old index so that I can see data on the dashboard for past 24 hours.I want to achieve this with curator + reindex API, but unfortunately it did not work .

Regards  
VG

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 14, 2017, 4:00pm UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024/4 "2017-11-14T16:00:15Z")

</div>

> [@vikas\_gopal](#):
>
> Sorry for late reply , Actually I want to prepare a dashboard which display data for past 24 hours . Problem here is some of the panels of this dashboard is blank because the index from which it pickup the data is 10 days old .

How will reindexing make the data from 10 days ago suddenly be from the past 24 hours? I don't follow your logic here. Reindexing won't change the date field to magically be from the last 24 hours.

---

<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 12, 2017, 4:00pm UTC](https://discuss.elastic.co/t/why-reindex-api-is-not-storing-events-with-latest-datetime/106024/5 "2017-12-12T16:00:27Z")

</div>

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