# Parse the field host

**URL:** https://discuss.elastic.co/t/parse-the-field-host/176069
**Category:** Synthetics
**Created:** [April 9, 2019, 4:44pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069 "2019-04-09T16:44:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Pereira1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_pereira1/32/43046_2.png) [@Luis\_Pereira1](https://discuss.elastic.co/u/Luis_Pereira1)
#### Post date: [April 9, 2019, 4:44pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/1 "2019-04-09T16:44:45Z")

</div>

Hello can you guys tell me how can i parse this ...

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2e53502f56edbb90254d96161a5d4681754dbcad.png)

I want to change the field host instead of saying icmp-icmp, i want a description or a name of the device.

What options are available to do this ?

---

<div class="post-metadata">

### Author: ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)
#### Post date: [April 9, 2019, 5:27pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/2 "2019-04-09T17:27:59Z")

</div>

Hi @Luis_Pereira1 - I'd recommend you give [names](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-heartbeat-options.html#monitor-name) to the monitors.

In the `6.7` UI, a series of named monitors with names like `["anothericmp", "icmptest"]` will display with a pattern like `icmp-{CUSTOM_NAME}-ip@{IP}` like shown below:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a9b35268ec1a341b962be1777b13bee2bdcfa28.png)

You can configure a name simply by adding `name: 'your-custom-name'` to the monitor definitions.

In future versions of the UI we will likely be displaying simply the name in this field.

---

<div class="post-metadata">

### Author: ![Luis\_Pereira1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_pereira1/32/43046_2.png) [@Luis\_Pereira1](https://discuss.elastic.co/u/Luis_Pereira1)
#### Post date: [April 10, 2019, 9:11am UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/3 "2019-04-10T09:11:58Z")

</div>

HI Justin,

Thank you for the reply, can you show me an example in yml?

---

<div class="post-metadata">

### Author: ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)
#### Post date: [April 10, 2019, 12:44pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/4 "2019-04-10T12:44:02Z")

</div>

Sure thing Luis.

The YAML for the monitors I showed above looks like:

```auto
- type: icmp
  schedule: '*/5 * * * * * *'
  hosts: ['8.8.8.8']
  name: 'icmptest'
- type: icmp
  schedule: '*/5 * * * * * *'
  hosts: ['0.0.0.0']
  name: 'anothericmp'

```

I apologize as I'm now realizing the way I showed my names before was confusing. Please let me know if I can help further.

---

<div class="post-metadata">

### Author: ![Luis\_Pereira1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_pereira1/32/43046_2.png) [@Luis\_Pereira1](https://discuss.elastic.co/u/Luis_Pereira1)
#### Post date: [April 10, 2019, 5:10pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/5 "2019-04-10T17:10:58Z")

</div>

Thank you for your help, its working now 😀

---

<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 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/parse-the-field-host/176069/6 "2019-05-04T17:19:53Z")

</div>

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