# Geo\_point expected error in Elasticsearch 5.0.0-alpha5

**URL:** <https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938>\
**Category:** Elasticsearch\
**Created:** [September 7, 2016, 4:33am UTC](https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938 "2016-09-07T04:33:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madkoala](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@madkoala](https://discuss.elastic.co/u/madkoala)\
**Post date:** [September 7, 2016, 4:33am UTC](https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938/1 "2016-09-07T04:33:09Z")

</div>

When indexing geoip data with logstash 5.0.0-alpha5, some exception occurred.

Error message:

> MapperParsingException[failed to parse]; nested: ElasticsearchParseException[geo\_point expected];  
> at org.elasticsearch.index.mapper.DocumentParser.wrapInMapperParsingException(DocumentParser.java:188)  
> at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:82)  
> at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:286)  
> at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:511)  
> at org.elasticsearch.index.shard.IndexShard.prepareIndexOnPrimary(IndexShard.java:492)

geoip data inserted:

> "dst\_geoip": {  
> "timezone": "Asia/Seoul",  
> "ip": "2001:2d8:e22b:ba46:0:0:3191:ad",  
> "latitude": 36.5,  
> "continent\_code": "AS",  
> "city\_name": null,  
> "country\_code2": "KR",  
> "country\_name": "Republic of Korea",  
> "dma\_code": null,  
> "country\_code3": "KR",  
> "region\_name": null,  
> "location": [127.75, 36.5],  
> "postal\_code": null,  
> "longitude": 127.75,  
> "region\_code": null  
> },

mapping:

> "dst\_geoip" : {  
> "dynamic" : false,  
> "properties" : {  
> "area\_code":{"type":"long"},  
> "city\_name":{"type":"text", "index":"not\_analyzed"},  
> "asn":{"type":"text", "index":"not\_analyzed"},  
> "number":{"type":"text", "index":"not\_analyzed"},  
> "continent\_code":{"type":"text"},  
> "coordinates":{"type":"text"},  
> "country\_code2":{"type":"text"},  
> "country\_code3":{"type":"text"},  
> "country\_name":{"type":"text", "index":"not\_analyzed"},  
> "dma\_code":{"type":"long"},  
> "ip":{"type":"ip", "index":"not\_analyzed"},  
> "latitude":{"type":"double"},  
> "longitude":{"type":"double"},  
> "postal\_code":{"type":"text"},  
> "real\_region\_name":{"type":"text", "index":"not\_analyzed"},  
> "region\_name":{"type":"text", "index":"not\_analyzed"},  
> "timezone":{"type":"text", "index":"not\_analyzed"},  
> "location" : {  
> "type" : "geo\_point"  
> }  
> },  
> "type" : "object"  
> }

What's wrong with my configuration?  
If anyone knows, please let me know.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [September 7, 2016, 8:02am UTC](https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938/2 "2016-09-07T08:02:20Z")

</div>

Could you show the request that causes the error?

---

<div class="post-metadata">

**Author:** ![madkoala](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@madkoala](https://discuss.elastic.co/u/madkoala)\
**Post date:** [September 8, 2016, 3:15am UTC](https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938/3 "2016-09-08T03:15:44Z")

</div>

Here's my elasticsearch log reporting error.  
I changed some IP to random numbers.  
(I couldn't capture the request. sorry.)

[flowv6][AVcCvIq62YzxfydFt7d0], source[{"message":"2016-09-07 12:36:15,2016-09-07 12:36:15,0.000,2001:290:20:2001::d,2001:2d8:30c:dc83::e56:c0a0,443,54321,TCP,.A....,64,0,1,1280,0,0,43,38,0,9644,64,33,0,0,0.0.0.0,0.32.0.72,0,0,00:00:00:00:00:00,00:00:00:00:00:00,00:00:00:00:00:00,00:00:00:00:00:00,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0,0-0-0, 0.000, 0.000, 0.000,111.111.111.111,0/33,3,2016-09-07 12:36:31.892","@version":"1","@timestamp":"2016-09-07T03:41:31.988Z","path":"/home/madkoala/workspace/flow/netflow/data/nfdump-ascii/201609071236\_csv\_nfcapd.log","host":"es-stack-5-dev","type":"flowv6","tags":["xxx","netflow","ipv6"],"flow\_start\_time":"2016-09-07T12:36:15.000Z","flow\_end\_time":"2016-09-07T12:36:15.000Z","flow\_duration":"0.000","src\_ip":"2001:290:20:2001::d","dst\_ip":"2001:2d8:30c:dc83::e56:c0a0","src\_port":"443","dst\_port":"54321","protocol":"TCP","tcp\_flag":".A....","fwd\_status":"64","src\_tos":"0","input\_pkts":"1","input\_bytes":"1280","output\_pkts":"0","output\_bytes":"0","in\_if":"43","out\_if":"38","src\_bgp\_as":"0","dst\_bgp\_as":"9644","src\_mask":"64","dst\_mask":"33","dst\_tos":"0","flow\_dir":"0","next\_hop\_rtr":"0.0.0.0","bgp\_next\_hop\_rtr":"0.0.0.0","src\_vlan":"0","dest\_vlan":"0","in\_src\_mac":"00:00:00:00:00:00","out\_dst\_mac":"00:00:00:00:00:00","in\_dst\_mac":"00:00:00:00:00:00","out\_src\_mac":"00:00:00:00:00:00","mpls1":"0-0-0","mpls2":"0-0-0","mpls3":"0-0-0","mpls4":"0-0-0","mpls5":"0-0-0","mpls6":"0-0-0","mpls7":"0-0-0","mpls8":"0-0-0","mpls9":"0-0-0","mpls10":"0-0-0","client\_latency":" 0.000","server\_latency":" 0.000","app\_latency":" 0.000","rtr\_ip":"0.0.0.0","engine":"0/33","exp\_sys\_id":"3","flow\_received":"2016-09-07T12:36:31.892Z","src\_geoip":{"ip":"111.111.111.111","country\_code2":"KR","country\_code3":"KOR","country\_name":"Korea, Republic of","continent\_code":"AS","region\_name":"11","city\_name":"Seoul","latitude":37.5985,"longitude":126.97829999999999,"timezone":"Asia/Seoul","real\_region\_name":"Seoul-t'ukpyolsi","location":[126.97829999999999,37.5985]}}]}  
MapperParsingException[failed to parse]; nested: ElasticsearchParseException[geo\_point expected];  
at org.elasticsearch.index.mapper.DocumentParser.wrapInMapperParsingException(DocumentParser.java:188)  
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:82)  
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:286)  
at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:511)  
at org.elasticsearch.index.shard.IndexShard.prepareIndexOnPrimary(IndexShard.java:492)  
at org.elasticsearch.action.index.TransportIndexAction.prepareIndexOperationOnPrimary(TransportIndexAction.java:174)  
at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:179)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:348)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.index(TransportShardBulkAction.java:156)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.handleItem(TransportShardBulkAction.java:135)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:121)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.onPrimaryShard(TransportShardBulkAction.java:72)  
at ... (omitted)

---

<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:** [July 5, 2017, 10:21pm UTC](https://discuss.elastic.co/t/geo-point-expected-error-in-elasticsearch-5-0-0-alpha5/59938/4 "2017-07-05T22:21:55Z")

</div>


