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从一台弹性搜索服务器转移到亚马逊弹性搜索
对于上述配置,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”}
重试不知道它发生的原因
答案 0 :(得分:0)
以下解决方案为我解决了问题 单击Amazon Elastic Search configure cluster
中配置的集群现在单击“高级选项”,您可以在其中看到 允许可以跨越多个索引并绕过特定于索引的访问策略的API-签入策略 Advance Option