# Is it possible to pass multiple hosts in scroll api

**URL:** https://discuss.elastic.co/t/is-it-possible-to-pass-multiple-hosts-in-scroll-api/303919
**Category:** Elasticsearch
**Created:** [May 4, 2022, 9:14am UTC](https://discuss.elastic.co/t/is-it-possible-to-pass-multiple-hosts-in-scroll-api/303919 "2022-05-04T09:14:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gojo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gojo](https://discuss.elastic.co/u/Gojo)
#### Post date: [May 4, 2022, 9:14am UTC](https://discuss.elastic.co/t/is-it-possible-to-pass-multiple-hosts-in-scroll-api/303919/1 "2022-05-04T09:14:07Z")

</div>

hi all , is it possible to pass multiple hosts in scroll api , i want to get multiple logs from multiple hosts using scroll request

> ```
> url = '{0}/{1}/_search?scroll=1m&ignore_unavailable=true'.format(
> 
> ES_HOST, es_index , hosts - like this 
> 
> )
> 
> ```

---

<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: [May 5, 2022, 2:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-pass-multiple-hosts-in-scroll-api/303919/2 "2022-05-05T02:13:59Z")

</div>

It doesn't make sense to do that here, as the node that receives the request will then collect the relevant data from any other shard on any other node in the cluster. That is, you can't scroll by node.

---

<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 2, 2022, 2:14am UTC](https://discuss.elastic.co/t/is-it-possible-to-pass-multiple-hosts-in-scroll-api/303919/3 "2022-06-02T02:14:42Z")

</div>

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