gpt4 book ai didi

elasticsearch - Logstash和Elastic升级

转载 作者:行者123 更新时间:2023-12-02 22:18:56 25 4
gpt4 key购买 nike

我在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"] }
}

然而,它一遍又一遍地抛出此错误。

知道这里有什么问题吗?

最佳答案

看看changes in mapping, introduced in elasticsearch 6.0

您需要从索引模板中删除include_in_all映射参数。

您可以在此处粘贴模板/映射吗?

关于elasticsearch - Logstash和Elastic升级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47995598/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com