无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

es 日志中报警告 好像是字段内容不能为空? 这个怎么解决?

Elasticsearch | 作者 zhangshuai | 发布于2018年09月20日 | 阅读数:5350

 
[2018-09-20T11:04:58,748][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"appl_2018_09_20", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x17712c4e>], :response=>{"index"=>{"_index"=>"appl_2018_09_20", "_type"=>"doc", "_id"=>"PZTv9GUBI4HsTGFi6Qzs", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"field name cannot be an empty string"}}}}}
 
 
 
 
 
 
 
 
已邀请:

rochy - rochy_he

赞同来自:

看起来是字段的映射问题:mapper_parsing_exception
在映射转换的时候遇到了空字符串,貌似是 name 这个字段有空字符串,
你可以检查数据的可靠性,此外可以参考:https://www.elastic.co/guide/e ... .html

要回复问题请先登录注册