# APM Avg. page load duration distribution by country

**URL:** <https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928>\
**Category:** APM\
**Tags:** rum, server, ui\
**Created:** [June 5, 2020, 9:44am UTC](https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928 "2020-06-05T09:44:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moixcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moixcruz/32/40464_2.png) [@moixcruz](https://discuss.elastic.co/u/moixcruz)\
**Post date:** [June 5, 2020, 9:44am UTC](https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928/1 "2020-06-05T09:44:41Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** : 7.5.1

**Elasticsearch version** : 7.5.1

**APM Server version** : 7.5.1

**APM Agent language and version** : js-base 4.1.2

**Browser version** : chrome and firefox

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: yum rpm

**Fresh install or upgraded from other version?** upgraded

**Is there anything special in your setup?** apm-servers -\> logstash -\> elasticsearch

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
I see that recent versions (upgraded recently to 7.5.1) include a worldmap in apm to visualize avg page load duration dist by country.  
I have enabled the geoip plugin and can confirm that it works and can see the documents with coordinates and country/region... fields.  
However while inspecting in APM, the worldmap is empty. I've tried to find documentation about configuration but couldn't find much.  
The only special in my setup is that I have logstash servers in between apm-servers and elasticsearch, but nothing else.

What are the expected fields for the worldmap or configuration in kibana to enable it?  
The fields I have with geo information are: geo.location geo.region\_iso\_code geo.country\_iso\_code geo.continent\_name geo.city\_name geo.country\_name

 ![Screenshot from 2020-06-05 11-01-51](https://us1.discourse-cdn.com/elastic/original/3X/f/a/faa64414fff1d24b527bcfcd6fff398cda936592.png)

Thanks

---

<div class="post-metadata">

**Author:** ![Oliver\_Gupte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliver_gupte/32/41850_2.png) [@Oliver\_Gupte](https://discuss.elastic.co/u/Oliver_Gupte)\
**Post date:** [June 5, 2020, 5:33pm UTC](https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928/2 "2020-06-05T17:33:15Z")

</div>

Hello Moises, This chart is rendered by data in `client.geo.country_iso_code` and `transaction.duration.us`. It sounds like those fields are being populated. Can you look in your browsers developer console and share any errors you see. Also in the network tab of the browser's developer tools, can you look for a request for `/api/apm/services/{serviceName}/transaction_groups/avg_duration_by_country`. That's the API call to populate this chart, the response might have some more info as to what's going on. - Oliver

---

<div class="post-metadata">

**Author:** ![moixcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moixcruz/32/40464_2.png) [@moixcruz](https://discuss.elastic.co/u/moixcruz)\
**Post date:** [June 6, 2020, 8:43am UTC](https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928/3 "2020-06-06T08:43:51Z")

</div>

Hi Oliver, thank you for your prompt response!

That was the problem, I hadn't the geo fields under client., fixed it quickly by moving them accordingly under client.geo.\* in my logstash pipeline

Cheers /moi

---

<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 27, 2020, 4:44am UTC](https://discuss.elastic.co/t/apm-avg-page-load-duration-distribution-by-country/235928/4 "2020-06-27T04:44:00Z")

</div>

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