# How to add customed geo location

**URL:** <https://discuss.elastic.co/t/how-to-add-customed-geo-location/35821>\
**Category:** Logstash\
**Created:** [November 29, 2015, 8:39am UTC](https://discuss.elastic.co/t/how-to-add-customed-geo-location/35821 "2015-11-29T08:39:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SignXer](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SignXer](https://discuss.elastic.co/u/SignXer)\
**Post date:** [November 29, 2015, 8:39am UTC](https://discuss.elastic.co/t/how-to-add-customed-geo-location/35821/1 "2015-11-29T08:39:49Z")

</div>

Hi  
Here is my log:

> Nov 29 16:29:40 2015 10.248.8.39 KERNEL([H-2-H206-01@10.248.8.39](mailto:H-2-H206-01@10.248.8.39)): [4415406.544000] 6 8 0 0% Low 0 0% Low 0 0% Low 120437

This log from an AP from a building and I have it's coordinates.  
The IP address is 10.248.8.39 and it's private network.  
So I can't use geoip.  
How to add a customed geo location?  
Thanks!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 29, 2015, 10:30am UTC](https://discuss.elastic.co/t/how-to-add-customed-geo-location/35821/2 "2015-11-29T10:30:19Z")

</div>

So your goal is to manually hardcode specific lat/lon values for particular IP addresses or IP address patterns?

You can use Logstash to add en event field that Elasticsearch can parse into a field mapped as geo\_point. See the [geo\_point documentation](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/geo-point.html) for your version of ES to see what that field needs to look like.

The mapping of the field is also important. Logstash's default index template will make sure the `geoip.location` field is mapped as geo\_point. If you want another field name you'll have to update the template.

---

<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:** [July 6, 2017, 5:20am UTC](https://discuss.elastic.co/t/how-to-add-customed-geo-location/35821/3 "2017-07-06T05:20:54Z")

</div>


