# Geo\_point problems with multiple indexes and Logstash

**URL:** https://discuss.elastic.co/t/geo-point-problems-with-multiple-indexes-and-logstash/197121
**Category:** Elasticsearch
**Created:** [August 28, 2019, 1:24pm UTC](https://discuss.elastic.co/t/geo-point-problems-with-multiple-indexes-and-logstash/197121 "2019-08-28T13:24:14Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [August 30, 2019, 1:46pm UTC](https://discuss.elastic.co/t/geo-point-problems-with-multiple-indexes-and-logstash/197121/7 "2019-08-30T13:46:27Z")

</div>

Yes use an index template see [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) it is exactly for this case.

It will be applied to all new indices that fit the pattern apologies I should have showed you this at first I just wasn't sure what you were trying to accomplish.

it would look something like this and every new index created with the pattern will apply this mapping

```
PUT _template/stats
{
  "index_patterns": ["stats*"],
  "settings": {
    "number_of_shards": 1
  },
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_point"
      }
    }
  }
}
```

---

_[View the full topic](https://discuss.elastic.co/t/geo-point-problems-with-multiple-indexes-and-logstash/197121)._
