设置参数 `node.name` 可以自定义 Elasticsearch 节点的名字。 此条 Tips 由 medcl 贡献。

logstash 使用模板启动后报错,大神指导一下

Logstash | 作者 yang59324 | 发布于2017年12月11日 | 阅读数:3205

想在logstash启动的时候加载模板,使用ik分词器,但是每次启动都会出现以下报错:
[2017-12-11T17:07:40,548][WARN ][logstash.outputs.elasticsearch] Failed action. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"suyun-test-2017.12.11", :_type=>"DSPS-push", :_routing=>nil}, 2017-12-11T09:07:35.672Z %{host} 2017-12-11 17:07:35.142 [UpdateEsPushExecutor,66]-[INFO] [UpdateEsPushExecutor-47] 导入司机信息 total=13,success=13,result=BulkResult [count=13, failureIds=[], status=100, msg=success]], :response=>{"index"=>{"_index"=>"suyun-test-2017.12.11", "_type"=>"DSPS-push", "_id"=>nil, "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:  [message : {index=analyzed, type=string}]", "caused_by"=>{"type"=>"mapper_parsing_exception", "reason"=>"Root mapping definition has unsupported parameters:  [message : {index=analyzed, type=string}]"}}}}}
模板配置如下:
{
"order": 0,
"template": "suyun-*",
"settings": {
"index": {
"analysis": {
"analyzer": {
"ik": {
"tokenizer": "ik_smart"
}
}
},
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
"mappings": {
"type_name": {
"properties": {
"message": {
"type": "string",
"analyzer": "ik_smart",
"search_analyzer": "ik_smart"
}
}
}
}
}

 
已邀请:

wntp - 80后IT♂

赞同来自:

哪个版本的es?
 

yang59324

赞同来自:

2.3.5 问题原因已经找到了

要回复问题请先登录注册