yes ofcourse , but i sent in in this mode :: "location" : {45,51} but logstash return this error in log :
`
[2017-12-18T08:56:02,247][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch.
{:status=>400, :action=>["index", {:_id=>nil, :_index=>"index_test", :_type=>"doc", :_routing=>nil}, #LogStash::Event:0x1546c159], :response=>{"index"=>{"_index"=>"index_test", "_type"=>"doc", "_id"=>"4cQWaGABq4vMDUHKBmb8", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"illegal latitude value [269.9999986588955] for location"}}}}}
tnx , here it is: i want to send "Latitude" and "Longitude" to save geo_point field but i can't.
and another thing that must know , all {rssi} , {snr} , {lat} , {lng} and .... , replace with real values.
Please show us what you actually send to Elasticsearch. You can temporarily replace your elasticsearch output with a stdout { codec => rubydebug } output to dump that raw events to the log.
[2017-12-18T23:04:12,503][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"my_index", :_type=>"doc", :_routing=>nil}, #LogStash::Event:0x1549ea87], :response=>{"index"=>{"_index"=>"my_index", "_type"=>"doc", "_id"=>"nmMea2ABSZoa10DTjIn5", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [my_index] as the final mapping would have more than 1 type: [doc, my_type]"}}}}
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.