问题遇到的现象和发生背景
在es中创建的createTime字段类型是long,用到logstash 去同步数据库数据时报,Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"89", :_index=>"test", :routing=>nil, :_type=>"_doc"}, #LogStash::Event:0x769684f6], :response=>{"index"=>{"_index"=>"test", "_type"=>"_doc", "_id"=>"89", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [createTime] of type [long] in document with id '89'. Preview of field's value: '2021-12-28T14:40:16.000Z'", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"For input string: "2021-12-28T14:40:16.000Z""}}}}}