logstash的elasticsearch输出插件是否会重试个别批量错误?

时间:2017-04-07 21:27:52

标签: elasticsearch plugins logstash

context:logstash elasticsearch output plugin。

当批量请求中的单个操作失败时,是否会在以下批量请求中重试? (或个别请求丢失了?)

我认为这方面的文件不是很清楚。

1 个答案:

答案 0 :(得分:3)

看起来插件会分析响应并分别处理每个操作结果 - Plugin code

因此,以下重审警察会采取个人行动 - Plugin retry policy

错误回应的示例:

{
   "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 
      }}
   ]
}
相关问题