# Read timeout

**URL:** <https://discuss.elastic.co/t/read-timeout/128624>\
**Category:** Elasticsearch\
**Created:** [April 19, 2018, 5:15am UTC](https://discuss.elastic.co/t/read-timeout/128624 "2018-04-19T05:15:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [April 19, 2018, 5:15am UTC](https://discuss.elastic.co/t/read-timeout/128624/1 "2018-04-19T05:15:05Z")

</div>

Hi,

I have a data on multiple indexes and want to search it's last occurrence. Could you please help me on this.

Here is the scenario:  
I have following indexes:

acct-2018-03-01 , acct-2018-03-02 , acct-2018-03-03 .... acct-2018-03-25 , acct-2018-03-26 ... acct-2018-04-16

I want to search the last occurrence of jobid (value 12345) from the above indexes.

Suppose It's available on indexes acct-2018-03-01,acct-2018-03-03,acct-2018-03-25.  
Now I want to print the data only from it's last occurrence (from index acct-2018-03-25).  
I am using index as a "acct-\*".  
I can use "sort": [{"@timestamp": {"order": "asc"}}] and size =1 but in that case it would return only single entry from latest index and I want all entries from the latest index.

---

<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:** [May 17, 2018, 5:15am UTC](https://discuss.elastic.co/t/read-timeout/128624/2 "2018-05-17T05:15:07Z")

</div>

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