# Geo\_location

**URL:** <https://discuss.elastic.co/t/geo-location/96626>\
**Category:** Kibana\
**Created:** [August 10, 2017, 2:05pm UTC](https://discuss.elastic.co/t/geo-location/96626 "2017-08-10T14:05:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Nenych](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_nenych/32/21012_2.png) [@Mike\_Nenych](https://discuss.elastic.co/u/Mike_Nenych)\
**Post date:** [August 10, 2017, 2:05pm UTC](https://discuss.elastic.co/t/geo-location/96626/1 "2017-08-10T14:05:19Z")

</div>

Hello.  
Tell me please, how to change field type in kibana?  
I send next json object:  
{  
"severity":"info",  
"hostname":"pc04133-free",  
"@timestamp":"2017-08-10T13:13:11.186Z",  
"host-ip":"127.0.0.1",  
"@version":"1",  
"location":"50.4501,30.5234",  
"programname":"sshd",  
"procid":"28024",  
"host":"10.10.46.38",  
"message":" input\_userauth\_request: invalid user nenych [preauth]",  
"type":"rsyslog",  
"facility":"auth"  
}

How i can force kibana change field "location" to geo\_point type?  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 10, 2017, 2:50pm UTC](https://discuss.elastic.co/t/geo-location/96626/2 "2017-08-10T14:50:04Z")

</div>

Hi @Mike_Nenych. There's no way to change a field's type after it has been created in Elasticsearch. To specify a field's type you need to do so before indexing any data by defining a [mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html). The best way to do this is to create a [index template](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) that will match all of the indices that need this mapping. For data you've already indexed, you can use the [reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-reindex.html) or if you still have the source documents simply delete the indices and re-ingest your data.

---

<div class="post-metadata">

**Author:** ![Mike\_Nenych](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_nenych/32/21012_2.png) [@Mike\_Nenych](https://discuss.elastic.co/u/Mike_Nenych)\
**Post date:** [August 10, 2017, 4:25pm UTC](https://discuss.elastic.co/t/geo-location/96626/3 "2017-08-10T16:25:18Z")

</div>

Thanks for Your reply, I will try to create new indexes.

---

<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:** [September 7, 2017, 4:25pm UTC](https://discuss.elastic.co/t/geo-location/96626/4 "2017-09-07T16:25:27Z")

</div>

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