# Curator index with geo\_point field rollover

**URL:** <https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 5:58pm UTC](https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497 "2019-05-23T17:58:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Etemad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_etemad/32/42444_2.png) [@Mohammad\_Etemad](https://discuss.elastic.co/u/Mohammad_Etemad)\
**Post date:** [May 23, 2019, 5:58pm UTC](https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497/1 "2019-05-23T17:58:16Z")

</div>

Hi all,

I am using curator to do index rollover. The problem I am having is that I have a field:

> Location geo\_point

And here is my yaml:

```
actions:
  1:
    action: rollover
    description: >-
      Rollover the index associated with alias 'aliasname', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.
    options:
      name: access_logs
      new_index: "<access_logs-{now/d}-1>"
      conditions:
        max_age: 23h

```

When the rollover happens, my Location filed changes to

> Location.lat number  
> Location.lon number

So then my map stops working. Is there a way to force it to use geo\_point instead?

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [May 23, 2019, 8:46pm UTC](https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497/2 "2019-05-23T20:46:57Z")

</div>

This means that you do not have an index template to assign a mapping to the new index after rollover. It is an incorrect assumption that rollover captures and passes the previous index’s mappings.

---

<div class="post-metadata">

**Author:** ![Mohammad\_Etemad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_etemad/32/42444_2.png) [@Mohammad\_Etemad](https://discuss.elastic.co/u/Mohammad_Etemad)\
**Post date:** [May 24, 2019, 1:22pm UTC](https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497/3 "2019-05-24T13:22:21Z")

</div>

Great. Thank you very much. Creating templates solved the problem.

---

<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 21, 2019, 1:31pm UTC](https://discuss.elastic.co/t/curator-index-with-geo-point-field-rollover/182497/4 "2019-06-21T13:31:03Z")

</div>

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