# Cannot provide a name

**URL:** <https://discuss.elastic.co/t/cannot-provide-a-name/182027>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [May 21, 2019, 2:34pm UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027 "2019-05-21T14:34:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 21, 2019, 2:34pm UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/1 "2019-05-21T14:34:05Z")

</div>

Dear Elastic Team,

Seems like when giving a "name:" in heartbeat.yml file it doesn't work?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [May 21, 2019, 4:14pm UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/2 "2019-05-21T16:14:06Z")

</div>

Can you describe the exact errors or behavior you're seeing? Can you share your config?

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 22, 2019, 6:23am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/3 "2019-05-22T06:23:23Z")

</div>

Dear Andrew,

Would first like to thank you for your swift reply.  
I've attached a screenshot

 ![31](https://us1.discourse-cdn.com/elastic/original/3X/b/e/be6eff29177b538403f68f4f65c21dca721c75ad.png)

More information:  
I've enabled debug logging and e can confirm that the name is taking into account:

```
2/05/2019 08:48:42 "beat": {
22/05/2019 08:48:42 "name": "OPSFINAL",
22/05/2019 08:48:42 "hostname": "52f5d497ee4d",
22/05/2019 08:48:42 "version": "6.7.1"
22/05/2019 08:48:42 }
```

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 27, 2019, 6:32am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/4 "2019-05-27T06:32:24Z")

</div>

Dear Elastic Team,

Any updates on this one?

---

<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:** [May 27, 2019, 8:26am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/5 "2019-05-27T08:26:38Z")

</div>

Hi Yasin,  
Can you describe the exact error or behavior you are seeing?

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 27, 2019, 9:38am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/6 "2019-05-27T09:38:30Z")

</div>

Dear Dov,

I want to change the hostname in UPTIME.  
I'm not receiving any error messages. In my logging i see it correct:  
So the name "OPSFINAL" is not reflected in UPTIME HOST.

```
2/05/2019 08:48:42 "beat": {
22/05/2019 08:48:42 "name": "OPSFINAL",
22/05/2019 08:48:42 "hostname": "52f5d497ee4d",
22/05/2019 08:48:42 "version": "6.7.1"
22/05/2019 08:48:42 }

```

 ![49](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f966456c74daaa61c8e1204520faa11ac2bb934.png)

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [May 27, 2019, 10:07am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/7 "2019-05-27T10:07:37Z")

</div>

Isn't Host the url to check that your passing in your config?  
I think your confusing the beat name with the url of what your checking.

It would be coming from one of the environment variable you use for interpolation in your config.

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 27, 2019, 10:17am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/8 "2019-05-27T10:17:38Z")

</div>

Dear Martin,

So what is the name in GENERAL section in metricbeat reference file doing then?  
What does it do?

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

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [May 27, 2019, 10:49am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/9 "2019-05-27T10:49:34Z")

</div>

It fills the beat.name field in the event and is used to identify this instance of beat. Like beat.hostname, it relates to the beat itself or the machine running the beat, not what you're "checking".

---

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [May 27, 2019, 11:27am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/10 "2019-05-27T11:27:47Z")

</div>

Dear Martin,

Ah, ok. It's clear.

Would like to thank you very much for your quick reply

---

<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:** [June 24, 2019, 11:27am UTC](https://discuss.elastic.co/t/cannot-provide-a-name/182027/11 "2019-06-24T11:27:58Z")

</div>

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