# Is there a API which can get all beat.hostname in an index?

**URL:** https://discuss.elastic.co/t/is-there-a-api-which-can-get-all-beat-hostname-in-an-index/308528
**Category:** Elasticsearch
**Created:** [June 30, 2022, 1:53am UTC](https://discuss.elastic.co/t/is-there-a-api-which-can-get-all-beat-hostname-in-an-index/308528 "2022-06-30T01:53:22Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)
#### Post date: [June 30, 2022, 5:13pm UTC](https://discuss.elastic.co/t/is-there-a-api-which-can-get-all-beat-hostname-in-an-index/308528/10 "2022-06-30T17:13:56Z")

</div>

I have found the solution.

> [@Need to get the list of hosts sending the logs to kibana](https://discuss.elastic.co/t/need-to-get-the-list-of-hosts-sending-the-logs-to-kibana/142435):
>
> Hi All, I need to setup a new visualize to get the list of hosts forwarding the logs to logstash. We have around 50 server and filebeat is the only plugin installed in all the server. I dont want the count , I want the list of hosts that have send the logs in the particular period of time. Regards Nandha

Also thanks a lot for you time.

---

_[View the full topic](https://discuss.elastic.co/t/is-there-a-api-which-can-get-all-beat-hostname-in-an-index/308528)._
