简体   繁体   English

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

[英]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.

相关问题 重试logstash-output-elasticsearch的单个操作错误 - Retry individual action error of logstash-output-elasticsearch Logstash Elasticsearch输出与Elasticsearch过滤器的批量插入冲突 - Logstash Elasticsearch Output Bulk Insert Conflicts With Elasticsearch Filter Elasticsearch的Logstash couchdb_changes插件 - Elasticsearch's Logstash couchdb_changes Plugin Logstash + Elasticsearch故障转移在本地或重试 - Logstash + Elasticsearch failover locally or retry 在Logstash Elasticsearch输出插件和Kibana中最好配置哪个Elasticsearch节点 - Which Elasticsearch node is better configured in Logstash Elasticsearch output plugin and Kibana Logstash elasticsearch output 插件 - 从元数据字段填充 api_key 不起作用 - Logstash elasticsearch output plugin - Populating api_key from metadata field does not work 当logstash的elasticsearch输出插件记录错误时,在prometheus中发出警报 - Raise an alert in prometheus when logstash's elasticsearch output plugin log an error Logstash:输出到Elasticsearch会导致Ruby出错,但可与stdout一起使用 - Logstash: Output to Elasticsearch gives errors with ruby but works with stdout 如何将Elasticsearch用作Logstash中的输出插件 - How to query Elasticsearch when it is used as an output plugin in logstash 使用Logstash Elasticsearch输出插件的ILM不起作用 - ILM using Logstash Elasticsearch output plugin doesn't work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM