[英]does logstash's elasticsearch output plugin retry individual bulk errors?
context: logstash elasticsearch output plugin. context:logstash elasticsearch输出插件。
When an individual action in a bulk request fails, will it be retried in a following bulk request? 当批量请求中的单个操作失败时,是否会在以下批量请求中重试? (or the individual request is lost?) (或个别请求丢失了?)
documentation on this is not very clear in my opinion. 我认为这方面的文件不是很清楚。
It looks like plugin parses the response and processes each action result separately - Plugin code 它看起来像插件解析响应并分别处理每个动作结果 - 插件代码
So the following retry police works for an individual action - Plugin retry policy 因此,以下重试警察的个人行动 - 插件重试政策
Example of the bad response: 不良反应的例子:
{
"took": 3,
"errors": true,
"items": [
{ "create": {
"_index": "website",
"_type": "blog",
"_id": "123",
"status": 409,
"error": "DocumentAlreadyExistsException
[[website][4] [blog][123]:
document already exists]"
}},
{ "index": {
"_index": "website",
"_type": "blog",
"_id": "123",
"_version": 5,
"status": 200
}}
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.