# Still has the problem that index pattern does not contain any of the following field types: geo\_point

**URL:** https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737
**Category:** Elasticsearch
**Created:** [October 31, 2018, 12:58am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737 "2018-10-31T00:58:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tianchao-haohan](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@tianchao-haohan](https://discuss.elastic.co/u/tianchao-haohan)
#### Post date: [October 31, 2018, 12:58am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737/1 "2018-10-31T00:58:40Z")

</div>

logstash-6.2.4  
elasticsearch-6.2.4  
Here is the filter configuration in logstash:  
geoip {  
source =\> "src\_ip"  
target =\> "geoip"  
database =\> "/usr/share/GeoIP/GeoLite2-City.mmdb"  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][longitude]}" ]  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][latitude]}" ]  
}  
mutate {  
convert =\> ["[geoip][coordinates]", "float"]  
}

And this is the geoip.location definition in elasticsearch mappings:  
"location": {  
"properties": {  
"lat": {  
"type": "float"  
},  
"lon": {  
"type": "float"  
}  
}

If I applied mappings to es:  
PUT my\_index  
{  
"mappings": {  
"\_doc": {  
"properties": {  
"location": {  
"type": "geo\_point"  
}  
}  
}  
}  
}

Another error happened:  
[geoip.location] is defined as an object in mapping [doc] but this name is already used for a field in other types

This is not a new problem. However I can't find the workable solution from the discussion forum

---

<div class="post-metadata">

### Author: ![xUmaRix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xumarix/32/125516_2.png) [@xUmaRix](https://discuss.elastic.co/u/xUmaRix)
#### Post date: [October 31, 2018, 3:15am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737/2 "2018-10-31T03:15:57Z")

</div>

Try this

```auto
geoip {
        source => "src_ip"
        target => "geoip"
        add_field => ["[geoip][coordinates]", "%{[geoip][location][lon]}" ]
        add_field => ["[geoip][coordinates]", "%{[geoip][location][lat]}" ]
        }
 mutate {
        convert => ["[geoip][coordinates]", "float" ]

```

---

<div class="post-metadata">

### Author: ![tianchao-haohan](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@tianchao-haohan](https://discuss.elastic.co/u/tianchao-haohan)
#### Post date: [November 1, 2018, 5:31am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737/3 "2018-11-01T05:31:28Z")

</div>

It doesn't work.  
No geoip.location field found in the index:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5f5392d825c4539fa877a2472f912d2fc30ce459.png)

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 1, 2018, 6:39am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737/4 "2018-11-01T06:39:15Z")

</div>

You need to delete the index, create the index with a proper mapping and reindex.

---

<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: [November 29, 2018, 6:39am UTC](https://discuss.elastic.co/t/still-has-the-problem-that-index-pattern-does-not-contain-any-of-the-following-field-types-geo-point/154737/5 "2018-11-29T06:39:26Z")

</div>

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