# Unable to monitor URL in heartbeat

**URL:** https://discuss.elastic.co/t/unable-to-monitor-url-in-heartbeat/306453
**Category:** Beats
**Tags:** heartbeat
**Created:** [June 6, 2022, 1:11pm UTC](https://discuss.elastic.co/t/unable-to-monitor-url-in-heartbeat/306453 "2022-06-06T13:11:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)
#### Post date: [June 6, 2022, 1:11pm UTC](https://discuss.elastic.co/t/unable-to-monitor-url-in-heartbeat/306453/1 "2022-06-06T13:11:01Z")

</div>

I am trying to add below URL in heartbeat but it is giving error like 401 Authentication requested or 403 Forbidden

I am missing anything?

```auto
- type: http
  urls: ["http://myurl.net:9000"]
  username: abcd
  password: #abcd!
  schedule: '@every 10m'
  fields_under_root: true

```

---

<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: [June 6, 2022, 11:49pm UTC](https://discuss.elastic.co/t/unable-to-monitor-url-in-heartbeat/306453/2 "2022-06-06T23:49:28Z")

</div>

Can you share the full error please.

Is there authentication against that URL?

---

<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: [July 4, 2022, 11:50pm UTC](https://discuss.elastic.co/t/unable-to-monitor-url-in-heartbeat/306453/3 "2022-07-04T23:50:00Z")

</div>

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