# Unable to fetch latest event using Elastic search REST API

**URL:** https://discuss.elastic.co/t/unable-to-fetch-latest-event-using-elastic-search-rest-api/225416
**Category:** Elasticsearch
**Created:** [March 27, 2020, 1:37pm UTC](https://discuss.elastic.co/t/unable-to-fetch-latest-event-using-elastic-search-rest-api/225416 "2020-03-27T13:37:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Namrata\_Gharat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namrata_gharat/32/65197_2.png) [@Namrata\_Gharat](https://discuss.elastic.co/u/Namrata_Gharat)
#### Post date: [March 27, 2020, 1:37pm UTC](https://discuss.elastic.co/t/unable-to-fetch-latest-event-using-elastic-search-rest-api/225416/1 "2020-03-27T13:37:00Z")

</div>

Hi

I am unable to get latest events for error-logs using Elastic search REST API. I can see the latest events in Kibana dashboard but whenever try to fetch events from Elastic search REST API it shows older events. Please help.

OS- Redhat 7.6  
Elastic/Logstash/Kibana: 7.4.0

If there is any more information needed, please ask.

---

<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: [April 24, 2020, 1:37pm UTC](https://discuss.elastic.co/t/unable-to-fetch-latest-event-using-elastic-search-rest-api/225416/2 "2020-04-24T13:37:09Z")

</div>

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