想在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"
        }
      }
    }
  }
}
 
	
2 个回复
wntp - 80后IT♂
赞同来自:
yang59324
赞同来自: