【发布时间】:2017-12-27 16:35:32
【问题描述】:
我在 5.1 版上有一个功能性的 Logstash 和 Elasticsearch。
我删除了所有索引,然后升级到 6.1。
现在,当 Logstash 从 Filebeat 接收到一些事件(仍然是 5.1 版)时,它会抛出这个错误:
[2017-12-27T17:29:16,463][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch.
{
:status => 400,
:action => ["index", {:_id=>nil, :_index=>"logstash-2017.12.27", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x34de85bd>],
:response => {
"index" => {
"_index" => "logstash-2017.12.27",
"_type" => "doc",
"_id" => nil,
"status" => 400,
"error" => {
"type" => "mapper_parsing_exception",
"reason" => "Failed to parse mapping [_default_]: [include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field.",
"caused_by" => {
"type" => "mapper_parsing_exception",
"reason" => "[include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field."
}
}
}
}
}
我什至尝试过使用极其简单的管道,您可以在此处看到:
input {
beats {
port => 5044
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch { hosts => ["localhost:9200"] }
}
但它一遍又一遍地抛出这个错误。
知道这里有什么问题吗?
【问题讨论】:
标签: elasticsearch logstash logstash-configuration