ElasticsearchParseException: geo_point expected - ES 5.4.1


(Sharon Sasporta) #1

I am getting mapping exception in ES:

[2018-03-07T11:32:38,326][DEBUG][o.e.a.b.TransportShardBulkAction] [valuepack] [logstash2017.07.27omniclient-vpelastic][0] failed to execute bulk item (i
ndex) BulkShardRequest [[logstash2017.07.27omniclient-vpelastic][0]] containing [86] requests
org.elasticsearch.index.mapper.MapperParsingException: failed to parse
at org.elasticsearch.index.mapper.DocumentParser.wrapInMapperParsingException(DocumentParser.java:176) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:69) ~[elasticsearch-5.4.1.jar:5.4.1]
....
.....
.....
Caused by: org.elasticsearch.ElasticsearchParseException: geo_point expected
at org.elasticsearch.common.geo.GeoUtils.parseGeoPoint(GeoUtils.java:465) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.index.mapper.BaseGeoPointFieldMapper.parse(BaseGeoPointFieldMapper.java:581) ~[elasticsearch-5.4.1.jar:5.4.1]
at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:450) ~[elasticsearch-5.4.1.jar:5.4.1]

The mapping:

PUT _template/omniclient_template
{
"template": "logstashomniclient",
"settings": {
"number_of_shards": 1
},
"mappings": {
"geo_point_type": {
"properties": {
"@version":{"type": "keyword", "index": true},
"page":{"type": "keyword", "index": true},
"loadbalancerip":{"type": "ip"},
"clientrealip": {"type": "ip"},
"clientnattedip":{"type": "ip"},
"Timestamp":{"type": "date", "format": "yyyy-MM-dd HH:mm:ss.SSS"},
"geoip" : { "type" : "object",
"dynamic": true,
"properties" : {
"ip": { "type": "ip" },
"location" : { "type" : "geo_point" },
"latitude" : { "type" : "float" },
"longitude" : { "type" : "float" }
}
}
}
}
}
}

The Logstash output:

"geoip" => {
"timezone" => "America/New_York",
"ip" => "73.106.71.62",
"latitude" => 33.7844,
"continent_code" => "NA",
"city_name" => "Stone Mountain",
"country_code2" => "US",
"country_name" => "United States",
"dma_code" => 524,
"country_code3" => "US",
"region_name" => "Georgia",
"location" => [
[0] -84.2135,
[1] 33.7844
],
"postal_code" => "30083",
"longitude" => -84.2135,
"region_code" => "GA"
},

Any idea?

Thanks
Sharon.


(Sharon Sasporta) #2

Hi,

Can someone try to help me here?

I can add more info if necessary.

Thanks
Sharon.


(system) #3

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