# How to query multiple hosts?

**URL:** https://discuss.elastic.co/t/how-to-query-multiple-hosts/358596
**Category:** Elastic Search
**Created:** [May 2, 2024, 12:15am UTC](https://discuss.elastic.co/t/how-to-query-multiple-hosts/358596 "2024-05-02T00:15:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MelasticSan](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@MelasticSan](https://discuss.elastic.co/u/MelasticSan)
#### Post date: [May 2, 2024, 12:15am UTC](https://discuss.elastic.co/t/how-to-query-multiple-hosts/358596/1 "2024-05-02T00:15:47Z")

</div>

Often times we upgrade the agents and want to validate if we are receiving data from a particular host into the Kibana dashboard . Is there a simple quick query that can show data for last 1 hour .  
I tried something like  
tag.host = "host1" or tag.host ="host2"or tag.host ="host3" etc but what if I had 100 hosts ? Is there a query that can show like tag.host in "list of hosts" ? Any other easier ways ?  
Thanks

---

<div class="post-metadata">

### Author: ![Sander\_Philipse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sander_philipse/32/101890_2.png) [@Sander\_Philipse](https://discuss.elastic.co/u/Sander_Philipse)
#### Post date: [May 2, 2024, 9:09am UTC](https://discuss.elastic.co/t/how-to-query-multiple-hosts/358596/2 "2024-05-02T09:09:12Z")

</div>

Hi @MelasticSan, you probably want to ask this question in Elastic Observability where they may be able to help you a little more quickly, but this sounds like a good use case for aggregations: [Aggregation-based | Kibana Guide [8.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/add-aggregation-based-visualization-panels.html)

---

<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 30, 2024, 9:10am UTC](https://discuss.elastic.co/t/how-to-query-multiple-hosts/358596/3 "2024-05-30T09:10:05Z")

</div>

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