# How to get logs of multiple hostnames using scoll api

**URL:** https://discuss.elastic.co/t/how-to-get-logs-of-multiple-hostnames-using-scoll-api/312453
**Category:** Elasticsearch
**Created:** [August 19, 2022, 10:08am UTC](https://discuss.elastic.co/t/how-to-get-logs-of-multiple-hostnames-using-scoll-api/312453 "2022-08-19T10:08:01Z")
**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: [August 19, 2022, 10:08am UTC](https://discuss.elastic.co/t/how-to-get-logs-of-multiple-hostnames-using-scoll-api/312453/1 "2022-08-19T10:08:01Z")

</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

> ```auto
> url = '{0}/{1}/_search?scroll=1m&ignore_unavailable=true'.format(
> 
> ```

```
        ES_HOST, es_index , hosts - like this 

    )

```

> ```auto
> 
> ```

---

<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: [August 19, 2022, 10:08am UTC](https://discuss.elastic.co/t/how-to-get-logs-of-multiple-hostnames-using-scoll-api/312453/2 "2022-08-19T10:08:33Z")

</div>

or is there a wildcard kind of thig we can use here

---

<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: [September 16, 2022, 10:08am UTC](https://discuss.elastic.co/t/how-to-get-logs-of-multiple-hostnames-using-scoll-api/312453/3 "2022-09-16T10:08:55Z")

</div>

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