# How to map geo\_point in indices that are created automatically by elasticsearch-kopf?

**URL:** <https://discuss.elastic.co/t/how-to-map-geo-point-in-indices-that-are-created-automatically-by-elasticsearch-kopf/44186>\
**Category:** Elasticsearch\
**Created:** [March 11, 2016, 5:52pm UTC](https://discuss.elastic.co/t/how-to-map-geo-point-in-indices-that-are-created-automatically-by-elasticsearch-kopf/44186 "2016-03-11T17:52:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Alraddadi](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Muhammad\_Alraddadi](https://discuss.elastic.co/u/Muhammad_Alraddadi)\
**Post date:** [March 11, 2016, 5:52pm UTC](https://discuss.elastic.co/t/how-to-map-geo-point-in-indices-that-are-created-automatically-by-elasticsearch-kopf/44186/1 "2016-03-11T17:52:07Z")

</div>

Hello community,

This is my first topic in this forum, so I hope I am posting this in the right place...I recently have been using AWS cloudwatch logs combined with kinesis, kibana and elasticsearch-kopf plugin (which creates daily indices).

Here is al link to AWS github that I used to create what I described above:  
[One-Click Setup: CloudWatch Logs + Elasticsearch + Kibana](https://github.com/awslabs/cloudwatch-logs-subscription-consumer)

Below you can see a screenshot of what my kopf tool looks like.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/4ea882d8707231262499dc30a6df47bf3a292f22.png)  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/5/52c990448f332c4e01836b6fc8341d39746ce4a4.png)

Here is an example my mapping for a daily index:  
`{ "_default_":{ "properties":{ "@timestamp":{ "format":"dateOptionalTime", "doc_values":true, "type":"date" }, "@message":{ "type":"string" }, "@id":{ "type":"string" } }, "_all":{ "enabled":false } }, "development":{ "properties":{ "@timestamp":{ "format":"dateOptionalTime", "doc_values":true, "type":"date" }, "@log_stream":{ "type":"string" }, "@message":{ "type":"string" }, "Context":{ "properties":{ "LocationId":{ "type":"string" }, "SubCategoryId":{ "type":"string" }, "HttpServerName":{ "type":"string" }, "HttpRequestUri":{ "type":"string" }, "CategoryId":{ "type":"string" }, "RequestId":{ "type":"string" }, "Coordinate":{ "type":"string" }, "ServiceId":{ "type":"string" }, "UserId":{ "type":"string" }, "HttpMethod":{ "type":"string" } } }, "Message":{ "type":"string" }, "@id":{ "type":"string" }, "Thread":{ "properties":{ "Name":{ "type":"string" }, "Id":{ "type":"long" }, "Priority":{ "type":"long" } } }, "Timestamp":{ "format":"dateOptionalTime", "type":"date" }, "Marker":{ "type":"string" }, "@log_group":{ "type":"string" }, "@owner":{ "type":"string" } }, "_all":{ "enabled":false } } }`  
From the mapping above, you can see that the `Coordinate` property type is a `string`type but it would be nice if I can find a way to ensure that this property is of type `geo_point`.

Keep in mind that if I manually change the mapping for `Coordinate` to `geo_point`, it will work and Kibana will recognize it as a `geo_point`type. However, when kopf automatically creates another daily index, it will map `Coordinate` as a `string`type and Kibana will get a mapping conflict.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/99d5ed421e580787948626382ab547ec17bbbd56.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 12, 2016, 1:40am UTC](https://discuss.elastic.co/t/how-to-map-geo-point-in-indices-that-are-created-automatically-by-elasticsearch-kopf/44186/2 "2016-03-12T01:40:15Z")

</div>

You need to create a template to handle this.  
Take a look at the one that Logstash uses for an example.

---

<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 5, 2017, 11:09pm UTC](https://discuss.elastic.co/t/how-to-map-geo-point-in-indices-that-are-created-automatically-by-elasticsearch-kopf/44186/3 "2017-07-05T23:09:00Z")

</div>


