# How to create geomap from loki?

**URL:** <https://community.grafana.com/t/how-to-create-geomap-from-loki/128882>\
**Category:** Dashboards\
**Created:** [August 18, 2024, 10:20am UTC](https://community.grafana.com/t/how-to-create-geomap-from-loki/128882 "2024-08-18T10:20:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![owanio1992](https://avatars.discourse-cdn.com/v4/letter/o/b487fb/32.png) [@owanio1992](https://community.grafana.com/u/owanio1992)\
**Post date:** [August 18, 2024, 10:20am UTC](https://community.grafana.com/t/how-to-create-geomap-from-loki/128882/1 "2024-08-18T10:20:31Z")

</div>

hello every  
here is my log

```auto
2024-08-18 10:12:10.441	
{"epoch":1723975873,"entry_type":"disconnect","outter_ipv4":"118.163.48.118","city":"Hsinchu County","country":"Taiwan","geohash":"wsqhm5e4"}
2024-08-18 10:12:10.441	
{"epoch":1723975883,"entry_type":"connect","outter_ipv4":"36.230.132.19","city":"Hsinchu","country":"Taiwan","geohash":"wsqj0gbh"}
2024-08-18 10:12:10.440	
{"epoch":1723975879,"entry_type":"connect","outter_ipv4":"118.163.48.118","city":"Hsinchu County","country":"Taiwan","geohash":"wsqhm5e4"}
2024-08-18 10:11:09.899	
{"epoch":1723975809,"entry_type":"connect","outter_ipv4":"118.163.48.118","city":"Hsinchu County","country":"Taiwan","geohash":"wsqhm5e4"}
2024-08-18 10:11:09.899	
{"epoch":1723975851,"entry_type":"disconnect","outter_ipv4":"36.230.132.159","city":"Hsinchu","country":"Taiwan","geohash":"wsqj0gbh"}

```

I have create panel with this query and use heatmap layer type

```auto
{source="geoip_helper"} | json | entry_type = `disconnect`

```

here is my result

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/9/6/9625676e5da605463b2fa5d63aa63c8f9cae08b4.png)

but I don’t know how to use Markers layer type  
I hope Styles - Size can auto change by count of log  
and show legend  
just like this [doc](https://www.metricfire.com/blog/grafana-worldmap-panel/)

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/7/57daa2d3480b15718a573be7936f1f33021d3d79.jpeg)

how do I change my query to accomplish ?
