# How to add geo information in Heartbeat?

**URL:** https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386
**Category:** Beats
**Tags:** heartbeat
**Created:** [May 26, 2020, 4:27pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386 "2020-05-26T16:27:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ozonshak](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@ozonshak](https://discuss.elastic.co/u/ozonshak)
#### Post date: [May 26, 2020, 4:27pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/1 "2020-05-26T16:27:37Z")

</div>

Hello. I'm attempting to set up Heartbeat for the first time. I believe I have this setup and I'm doing some basic pings against some web sites. I've noticed that when you click into a heartbeat, it says "geo information missing". I've tried to follow the instructions indicated, but I'm still not seeing any geo information. I have my yml separted out into a separate folder via "heartbeat.config.monitors". In that path, I have this specified for each of my HTTP monitor types:

```auto
 processors:
  - add_observer_metadata:
  geo:
    name: us-east-1a
    location: "39.04810, -77.47280"

```

Not clear if anything else is needed. I've also tried setting up an index pattern in Kibana (against the heartbeat Elastic index) and trying to use the Maps feature ([https://www.elastic.co/guide/en/beats/heartbeat/current/heartbeat-geoip.html](https://www.elastic.co/guide/en/beats/heartbeat/current/heartbeat-geoip.html)), but I'm striking out there as well. Would appreciate some assistance. Thanks!

---

<div class="post-metadata">

### Author: ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)
#### Post date: [May 27, 2020, 8:45am UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/2 "2020-05-27T08:45:37Z")

</div>

Hi @ozonshak seems like its rightly configured, i have mine like this

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

make sure you don't have any other processors with same name in file, if there is another below this with empty body, it will override it.

---

<div class="post-metadata">

### Author: ![ozonshak](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@ozonshak](https://discuss.elastic.co/u/ozonshak)
#### Post date: [May 27, 2020, 12:19pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/3 "2020-05-27T12:19:20Z")

</div>

Thanks @shahzad31. I do have this processor listed 3 times in my YML file, but each is exactly the same (just 3 for each of my "http" monitor types for 3 individual URLs). I assume this is ok in my individual YML file and it doesn't have to be in the main heartbeat.yml? I believe I have tried that as well with no luck. Does anything else have to be setup for this or is the above the only configuration necessary? I have basically set up my own installation of Kibana, ElasticSearch, and Heartbeat. Nothing fancy, just basic Linux installations using the latest version v7.7.

---

<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 27, 2020, 7:27pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/4 "2020-05-27T19:27:15Z")

</div>

@ozonshak usually this is set globally for the heartbeat instance in the `heartbeat.yml`. While it can be done per monitor that usually doesn't make much sense. See [https://github.com/elastic/uptime-contrib/blob/master/testing/configs/demo.yml](https://github.com/elastic/uptime-contrib/blob/master/testing/configs/demo.yml) for an example of this configured correctly.

---

<div class="post-metadata">

### Author: ![ozonshak](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@ozonshak](https://discuss.elastic.co/u/ozonshak)
#### Post date: [May 27, 2020, 8:11pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/5 "2020-05-27T20:11:42Z")

</div>

@Andrew_Cholakian1 Excellent! That worked. Not sure why this wasn't working from my separate YML monitor file or why it didn't work when I originally had this in the main file, but it seems to be working now.

So, I assume the only useful time when you would have multiple locations show up, would be having additional heartbeat instances running elsewhere, pumping data back into ElasticSearch from other locations?

---

<div class="post-metadata">

### Author: ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)
#### Post date: [May 27, 2020, 8:36pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/6 "2020-05-27T20:36:56Z")

</div>

Yup having additional heartbeat instance makes sense if you want to monitor your services from multiple locations.

---

<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, 2020, 8:37pm UTC](https://discuss.elastic.co/t/how-to-add-geo-information-in-heartbeat/234386/7 "2020-06-24T20:37:02Z")

</div>

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