Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil,
:_index=>"caary_time_test", :routing=>nil, :_type=>"_doc"}, #
<LogStash::Event:0x1537f1d7>], :response=>{"index"=>{"_index"=>"caary_time_test",
"_type"=>"_doc", "_id"=>"O8sRQ34BZIkRPQRnvuZL", "status"=>400, "error"=>
{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [lon] of type
[geo_point]", "caused_by"=>{"type"=>"parse_exception", "reason"=>"unsupported
symbol [-] in geohash [-132.4242]", "caused_by"=>{"type"=>"illegal_argument_exception",
"reason"=>"unsupported symbol [-] in geohash [-132.4242]"}}}}}}
It works fine, Actually I am getting postalCodes in incoming file then converting that postalCodes to latitude and longitude. Now I am facing problem how to convert lat and lon to geopoints.
It does not matter. To get a geo_point in elasticsearch you must have a mapping that says the field is a geo_point. Once you have that elasticsearch will parse anything like
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.