Logstash配置文件

input {
 elasticsearch {
 hosts => ["https://staing-example.com:443"]
 user => "userName"
 password => "password"
 index => "testingindex"
 size => 100
 scroll => "1m"
 }
}

filter {

}


output {
 amazon_es {
 hosts => ["https://example.us-east-1.es.amazonaws.com:443"]
 region => "us-east-1"
 aws_access_key_id => "access_key_id"
 aws_secret_access_key => "access_key_id"
 index => "testingindex"
}
}

使用Logstash从一台 flex 搜索服务器转移到亚马逊 flex 搜索

对于上述配置,Logstash不断抛出

2019-10-10T16:00:51,232] [错误] [logstash.outputs.elasticsearch]遇到可重试的错误。将以指数退避重试{:code => 400,:url =>“https://example.us-east-1.es.amazonaws.com:443/_bulk”}
[2019-10-10T16:00:52,127] [ERROR] [logstash.outputs.elasticsearch]遇到可重试的错误。将以指数退避重试{:code => 400,:url =>“https://example.us-east-1.es.amazonaws.com:443/_bulk”}
[2019-10-10T16:00:52,317] [错误] [logstash.outputs.elasticsearch]遇到可重试的错误。将以指数退避重试{:code => 400,:url =>“https://example.us-east-1.es.amazonaws.com:443/_bulk”}

不知道它发生的原因

最佳答案

以下解决方案为我解决了问题
单击Amazon Elastic Search中的已配置集群configure cluster

现在,单击“高级选项”,您可以在其中看到
允许可以跨越多个索引并绕过特定于索引的访问策略的API- checkin 策略
Advance Option

关于elasticsearch - 遇到可重试的错误。将以指数退避重试{:code => 400,:url = >“https://example.us-east-1.es.amazonaws.com:443/_bulk”},我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58321275/

10-13 07:48