# Adding geotagging to monitors in heartbeat

**URL:** https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972
**Category:** Beats
**Tags:** heartbeat
**Created:** [November 21, 2019, 8:09pm UTC](https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972 "2019-11-21T20:09:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [November 21, 2019, 8:09pm UTC](https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972/1 "2019-11-21T20:09:51Z")

</div>

Hello,

I am wondering if there is a possibility to add geoTagging to the monitors. For example. If I have a centralized elasticsearch from where I am running heartbeat and I am setting up a monitor for the services that are running on different datacenters in EU, US, I would like to have the ability to be able to show up the monitors for those datacenters in the map app. Can I do something like that?

---

<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: [November 25, 2019, 6:03pm UTC](https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972/2 "2019-11-25T18:03:35Z")

</div>

Yes, this is possible! There are two things you may want to geotag: 1. where heartbeat is 2. where the thing it is monitoring is.

For specifying where heartbeat is see [this doc](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-observer-options.html).

For specifying where the thing that's being monitored is I would add the [ECS Geo](https://www.elastic.co/guide/en/ecs/current/ecs-geo.html) fields at the root of the document which should work with the maps app. You can use the `add_fields` processor to do so. You can set [processors](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-heartbeat-options.html#monitor-processors) per heartbeat monitor add the `add_fields` processor there with the requisite geo fields.

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [November 25, 2019, 6:17pm UTC](https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972/3 "2019-11-25T18:17:53Z")

</div>

Perfect. I will certainly try it as soon as I have a bit of time to work on it.

---

<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: [December 23, 2019, 6:22pm UTC](https://discuss.elastic.co/t/adding-geotagging-to-monitors-in-heartbeat/208972/4 "2019-12-23T18:22:22Z")

</div>

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