# Elastic geo\_point

**URL:** <https://discuss.elastic.co/t/elastic-geo-point/182519>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 9:28pm UTC](https://discuss.elastic.co/t/elastic-geo-point/182519 "2019-05-23T21:28:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajsolanki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajsolanki/32/86859_2.png) [@rajsolanki](https://discuss.elastic.co/u/rajsolanki)\
**Post date:** [May 23, 2019, 9:28pm UTC](https://discuss.elastic.co/t/elastic-geo-point/182519/1 "2019-05-23T21:28:30Z")

</div>

Hope its not a repeat 🙂 so here is my setup.

filebeat out put to logstash (Apache access logs . due to some reasons we don't want to use Apache module ) . As elastic 7 has geoip plugin embeded all im doing in my logstash file is this along with my grok patterns.

geoip {  
source =\> "clientip"  
target =\> "geoip"  
add\_tag =\> ["webserver-geoip"]  
}

I m able to get all geo field populated. so far no issues. Issue is that geo.location was not type of geo\_point. I deleted all exisitng indices ,and i added following mapping .

PUT myindex-  
{  
"mappings": {  
"properties": {  
"geoip": {  
"dynamic": true,  
"properties": {

```
	"location": {
		"type": "geo_point"
	}
}

```

}  
}  
}  
}

I restarted filebeat by clearing registry. I get all documents ingested without issues. I refreshed the index pattern , i see geo.location is of type geo\_point now. But there is nothing in it. No values.

I also treid exporting my document structure , made a template , added that in my ES , after going through standard process of registry and restarting filebeat , all docuemnt were ingested but there was nothing in document except timestamp ☹

am i missing something very small thing to make this work ?

Raj

---

<div class="post-metadata">

**Author:** ![rajsolanki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajsolanki/32/86859_2.png) [@rajsolanki](https://discuss.elastic.co/u/rajsolanki)\
**Post date:** [May 23, 2019, 9:38pm UTC](https://discuss.elastic.co/t/elastic-geo-point/182519/2 "2019-05-23T21:38:57Z")

</div>

just needed a fresh set of eyes to lookup my setup 🙂 i had a slight wrong configuration in my template i had

"mappings" : {  
"properties" : {  
"geo" : {  
"properties" : {  
"location" : {  
"type": "geo\_point"  
}  
}  
}  
}  
} .

it should be

"mappings" : {  
"properties" : {  
"geoip" : {  
"properties" : {  
"location" : {  
"type": "geo\_point"  
}  
}  
}  
}  
}

---

<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 20, 2019, 9:38pm UTC](https://discuss.elastic.co/t/elastic-geo-point/182519/3 "2019-06-20T21:38:59Z")

</div>

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