# Geo\_point property

**URL:** <https://discuss.elastic.co/t/geo-point-property/267960>\
**Category:** Elasticsearch\
**Created:** [March 22, 2021, 8:50am UTC](https://discuss.elastic.co/t/geo-point-property/267960 "2021-03-22T08:50:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrizio](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fabrizio](https://discuss.elastic.co/u/fabrizio)\
**Post date:** [March 22, 2021, 8:50am UTC](https://discuss.elastic.co/t/geo-point-property/267960/1 "2021-03-22T08:50:17Z")

</div>

Hi, I have an index like log-. The daily index is create by logstash every day.  
I want to include geo\_point attribute.  
It was quite easy to create a specific index (for example) log-2021-03-17 with location property set to "geo\_point". But the day after (log-2021-03-18) the geo\_point mapping property is not set and I have to do it manually  
How I can automatically fix this property mapping for any index?

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [March 22, 2021, 9:24am UTC](https://discuss.elastic.co/t/geo-point-property/267960/2 "2021-03-22T09:24:57Z")

</div>

Welcome to our community @fabrizio

What you need to do is to add the mapping the to index template instead of the index itself.  
The index template is the source of all configurations for one specific type of index.

Its basically the same thing, but a template for all indices that are created with e.g. log-\*

> **[Index templates | Elasticsearch Reference \[7.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.11/index-templates.html)**

---

<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:** [April 19, 2021, 9:25am UTC](https://discuss.elastic.co/t/geo-point-property/267960/3 "2021-04-19T09:25:39Z")

</div>

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