# The inserted data is not sorted correctly in kibana

**URL:** https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239
**Category:** Kibana
**Created:** [May 6, 2020, 12:55am UTC](https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239 "2020-05-06T00:55:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)
#### Post date: [May 6, 2020, 12:55am UTC](https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239/1 "2020-05-06T00:55:10Z")

</div>

The data is stored in kafka and pushed to elasticsearch by logstash

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4dc0a07419964889494f7c7122db323d45cf68f9.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c1729e7d19e52bd934d8dda63975e37002f2bd7a.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd97fbb5af667b21b93ded1a70a37d8bafab92a4.png)

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [May 7, 2020, 12:33am UTC](https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239/2 "2020-05-07T00:33:59Z")

</div>

Can you please explain more elaborately . probably some of the already discussed posts might have the solution: [How sort by date/time on Kibana Discover](https://discuss.elastic.co/t/how-sort-by-date-time-on-kibana-discover/126804/16)

if not, please get back to us if this doesn't solve your issue.

---

<div class="post-metadata">

### Author: ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)
#### Post date: [May 7, 2020, 2:48am UTC](https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239/3 "2020-05-07T02:48:44Z")

</div>

I used @timestamp as the time field when creating the index pattern.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b5e63cf34d3294dde8cc4d4a411053985e45f2c0.png)

It can be determined that timestamp is a date type.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b92ce2bfd122a90569225d9b2edccd9c80eb3e4.png)

Do I still need to provide any information?

---

<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: [June 4, 2020, 2:48am UTC](https://discuss.elastic.co/t/the-inserted-data-is-not-sorted-correctly-in-kibana/231239/4 "2020-06-04T02:48:49Z")

</div>

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