# Heartbeat Autodiscover documentation uses \`hosts\` instead of \`urls\` for HTTP

**URL:** <https://discuss.elastic.co/t/heartbeat-autodiscover-documentation-uses-hosts-instead-of-urls-for-http/175398>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [April 4, 2019, 11:39am UTC](https://discuss.elastic.co/t/heartbeat-autodiscover-documentation-uses-hosts-instead-of-urls-for-http/175398 "2019-04-04T11:39:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdibaiee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mdibaiee/32/44134_2.png) [@mdibaiee](https://discuss.elastic.co/u/mdibaiee)\
**Post date:** [April 4, 2019, 11:39am UTC](https://discuss.elastic.co/t/heartbeat-autodiscover-documentation-uses-hosts-instead-of-urls-for-http/175398/1 "2019-04-04T11:39:08Z")

</div>

Hi,

In the Autodiscover documentation page of Heartbeat, the example for Kubernetes uses `hosts` under the HTTP configuration, whereas it should be `urls`. I spent an hour or so digging into this.

[https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-autodiscover.html](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-autodiscover.html)

If you set `hosts` instead of `urls`, following the example, you get:

```auto
Check failed for config &{{<nil> } <nil> 0xc42011fd40}: job err missing required field accessing 'urls', won't start runner

```

---

<div class="post-metadata">

**Author:** ![dov0211](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dov0211/32/36505_2.png) [@dov0211](https://discuss.elastic.co/u/dov0211)\
**Post date:** [April 8, 2019, 5:42am UTC](https://discuss.elastic.co/t/heartbeat-autodiscover-documentation-uses-hosts-instead-of-urls-for-http/175398/2 "2019-04-08T05:42:37Z")

</div>

> [@mdibaiee](#):
>
> HTTP

Thank you for pointing this out.  
issue opened

> <https://github.com/elastic/kibana/issues/34684>
>
> In the Autodiscover documentation page of Heartbeat, the example for Kubernetes …uses hosts under the HTTP configuration, whereas it should be URL instead.
> 
> https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-autodiscover.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 6, 2019, 5:42am UTC](https://discuss.elastic.co/t/heartbeat-autodiscover-documentation-uses-hosts-instead-of-urls-for-http/175398/3 "2019-05-06T05:42:40Z")

</div>

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