# How to Create a Field (Location)

**URL:** <https://discuss.elastic.co/t/how-to-create-a-field-location/179352>\
**Category:** Elasticsearch\
**Created:** [May 2, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-create-a-field-location/179352 "2019-05-02T11:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiovallejr](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@sergiovallejr](https://discuss.elastic.co/u/sergiovallejr)\
**Post date:** [May 2, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-create-a-field-location/179352/1 "2019-05-02T11:49:03Z")

</div>

Hello good Morning.

I have a problem.

After reading the documentation numerous times and I'm about to give up.

I'm trying to add the field of type geo\_point.

In the documentations that I saw here in the forum, they all point to adding the field to an index. However I have an index that is created by logstash every day ... ie after 24 hours a new index is created and my field of type geo\_point is lost.

I have tried to check the templates issue but I confess that I can not understand.

☹

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 6, 2019, 8:00am UTC](https://discuss.elastic.co/t/how-to-create-a-field-location/179352/2 "2019-05-06T08:00:04Z")

</div>

Hey,

You can add that field in an index template, this index template then gets automatically applied to a new logstash index on midnight, much like the existing logstash index template.

See [https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html)

--Alex

---

<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 3, 2019, 8:13am UTC](https://discuss.elastic.co/t/how-to-create-a-field-location/179352/3 "2019-06-03T08:13:06Z")

</div>

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