从logstash 2.3.2输出到弹性系统2.3.3会导致错误“根映射定义具有不受支持的参数”

时间:2016-06-08 20:30:37

标签: elasticsearch logstash logstash-configuration

我正在尝试遵循sm tutorial。运行此简单配置并键入简单消息会导致错误:

Failed action. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2016.06.08", :_type=>"logs", :_routing=>nil}, #<LogStash::Event:0x7ab1f728 @metadata_acce
ssors=#<LogStash::Util::Accessors:0x6d2f9ce3 @store={}, @lut={}>, @cancelled=false, @data={"message"=>"Hellothere\r", "@version"=>"1", "@timestamp"=>"2016-06-08T20:14:07.588Z"
, "host"=>"MYMACHINE"}, @metadata={}, @accessors=#<LogStash::Util::Accessors:0x6619e823 @store={"message"=>"Hellothere\r", "@version"=>"1", "@timestamp"=>"2016-06-08T20:14:0
7.588Z", "host"=>"MYMACHINE"}, @lut={"host"=>[{"message"=>"Hellothere\r", "@version"=>"1", "@timestamp"=>"2016-06-08T20:14:07.588Z", "host"=>"MYMACHINE"}, "host"], "type"=
>[{"message"=>"Hellothere\r", "@version"=>"1", "@timestamp"=>"2016-06-08T20:14:07.588Z", "host"=>"MYMACHINE"}, "type"]}>>], :response=>{"index"=>{"_index"=>"logstash-2016.06
.08", "_type"=>"logs", "_id"=>nil, "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"Failed to parse mapping [?date?]: Root mapping definition has unsupp
orted parameters:  [?store? : true]", "caused_by"=>{"type"=>"mapper_parsing_exception", "reason"=>"Root mapping definition has unsupported parameters:  [?store? : true]"}}}},
:level=>:warn}

{
       "message" => "Hellothere\r",
      "@version" => "1",
    "@timestamp" => "2016-06-08T20:14:07.588Z",
          "host" => "MYMACHINE"
}

这是否意味着Logstash 2.3.2 elasticsearch插件与Elasticsearch 2.3.3的最新更改不是最新的?

我是Elastic和Logstash的新手。

这种错误能否以某种方式减轻?

0 个答案:

没有答案