# In-correct document index order

**URL:** <https://discuss.elastic.co/t/in-correct-document-index-order/136014>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 1:38am UTC](https://discuss.elastic.co/t/in-correct-document-index-order/136014 "2018-06-15T01:38:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasgb](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@vikasgb](https://discuss.elastic.co/u/vikasgb)\
**Post date:** [June 15, 2018, 1:38am UTC](https://discuss.elastic.co/t/in-correct-document-index-order/136014/1 "2018-06-15T01:38:08Z")

</div>

Elasticsearch 5.4.1 Filebeat with Ingest nodes are used for grok.

Problem noticed:

In Kibana console, if we search for last 15 minutes, the query returns data which is anywhere from 5min to 5 days old. However, the @timestamp filed is for last 15 minutes only.  
So it appears that the documents are indexed correctly like 5 day old line is indexed as 5 min old and there is no ordering of the document.

Is there any know issue with such ordering?

---

<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:** [June 15, 2018, 4:19am UTC](https://discuss.elastic.co/t/in-correct-document-index-order/136014/2 "2018-06-15T04:19:51Z")

</div>

> [@vikasgb](#):
>
> However, the @timestamp filed is for last 15 minutes only.

Are you using a date processor to update the `@timestamp` to the correct one in the event?

---

<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:** [July 13, 2018, 4:20am UTC](https://discuss.elastic.co/t/in-correct-document-index-order/136014/3 "2018-07-13T04:20:00Z")

</div>

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