# Maps with paths

**URL:** https://discuss.elastic.co/t/maps-with-paths/206863
**Category:** Kibana
**Created:** [November 6, 2019, 9:17pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863 "2019-11-06T21:17:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vishal\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_m/32/50559_2.png) [@vishal\_M](https://discuss.elastic.co/u/vishal_M)
#### Post date: [November 6, 2019, 9:17pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863/1 "2019-11-06T21:17:17Z")

</div>

Hello Team,

I want to display the world's map and place over it locations of clients who interact with a single server.  
I want to draw lines between the clients and server  
I also need to differentiate server and clients with an icon.

Is this possible using Kibana? If yes, Can someone help me in building the JSON structure and visualizing it in Kibana maps?

Here is my sample data for all the clients :  
{"index":{"\_id":1}}  
{"city": "New York","state": "New York","status": "up","count": 1,"location": "40.7127837,-74.0059413","timestamp": "2019-10-31T19:44:40.292Z"}  
{"index":{"\_id":2}}  
{"city": "Los Angeles","state": "California","status": "down","count": 1,"location": "34.0522342,-118.2436849","timestamp": "2019-10-31T19:44:40.292Z"}  
{"index":{"\_id":3}}  
{ "city": "Los Angeles", "state": "California", "status": "up", "count": 1, "location": "34.058429,-118.279427", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":4}}  
{ "city": "Los Angeles", "state": "California", "status": "up", "count": 1, "location": "33.979178,-118.225925", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":5}}  
{ "city": "Chicago", "state": "Illinois", "status": "up", "count": 1, "location": "41.8781136,-87.6297982", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":6}}  
{ "city": "Houston", "state": "Texas", "status": "up", "count": 1, "location": "29.7604267,-95.3698028", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":7}}  
{ "city": "Philadelphia", "state": "Pennsylvania", "status": "down", "count": 1, "location": "39.9525839,-75.1652215", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":8}}  
{ "city": "Phoenix", "state": "Arizona", "status": "up", "count": 1, "location": "33.4483771,-112.0740373", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":9}}  
{ "city": "San Antonio", "state": "Texas", "status": "up", "count": 1, "location": "29.4241219,-98.49362819999999", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":10}}  
{ "city": "San Diego", "count": 1, "status": "down", "state": "California", "location": "32.715738,-117.1610838", "timestamp": "2019-10-31T19:44:40.292Z" }  
{"index":{"\_id":11}}  
{ "city": "Dallas", "count": 1, "status": "up", "state": "Texas", "location": "32.7766642,-96.79698789999999", "timestamp": "2019-10-31T19:44:40.292Z" }

Here is the map that I am able to configure based on the above sample data:

 ![43%20PM](https://us1.discourse-cdn.com/elastic/original/3X/3/2/320b61d4f02fdcb6aabed9dc5c01cebdd12192df.jpeg)

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [November 7, 2019, 5:16pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863/2 "2019-11-07T17:16:03Z")

</div>

Hello Vishal,

What you're describing is possible using the [Elastic Maps App](https://www.elastic.co/guide/en/kibana/current/maps.html). You could do it using a [Point to Point layer](https://www.elastic.co/guide/en/kibana/current/point-to-point.html). What the app expects in each doc will be two `geo_point` fields, one representing a source, the other a destination. For a reference sample dataset with the right shape, try loading the Kibana Sample Dataset `kibana_sample_data_flights`.

To render the sources and destinations using different icons, the Maps App provides custom icons to differentiate between the two which you can select when styling. To apply different icons to clients vs. servers, you could add two document layers, each pointing to the same index, and then [filter each one](https://www.elastic.co/guide/en/kibana/master/maps-layer-based-filtering.html): one filter for clients, the other for servers.

Hopefully that helps!

Regards,  
Aaron

---

<div class="post-metadata">

### Author: ![vishal\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_m/32/50559_2.png) [@vishal\_M](https://discuss.elastic.co/u/vishal_M)
#### Post date: [November 7, 2019, 7:31pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863/3 "2019-11-07T19:31:25Z")

</div>

Hello @Aaron_Caldwell,

Thanks for your quick reply, Please can u help me in configuring the sample flights map with `kibana_sample_data_flights` data. I have tried selecting 'Documents', options and 'Grid Aggregation' and selected `kibana_sample_data_flights`index. I cannot see the ` source` and `destination` sections. But I can see the Geospatial section where DestLocation has been selected by default.  
Even, i have created a new index with two geo\_point fields .But, still i couldn't see the source and destination sections in the layer configurations.

Please, can you provide me the complete steps?

 ![55%20PM](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd907895b4eb146c31d841b0d1c77a572c549110.jpeg). Or can u send me an example on how to mimic the same?

FYI: I am using Kibana 7.3.0  
Thanks,  
Vishal

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [November 7, 2019, 10:08pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863/4 "2019-11-07T22:08:45Z")

</div>

Hello Vishal,

Thanks for providing your Kibana version number, this feature was actually introduced in 7.4.0. Any chance you could upgrade? Once you do, you'll see "Point to Point" as a new source type. Then once you get going adding this dataset it should be a little more clear how to add both source and destination.

Regards,  
Aaron

---

<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 5, 2019, 10:08pm UTC](https://discuss.elastic.co/t/maps-with-paths/206863/5 "2019-12-05T22:08:47Z")

</div>

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