logstash 报错:retrying failed action with response code: 403 解决办法

Jackey 其他 117 次浏览 没有评论

完整报错信息:

logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "reason"=>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"})
[logstash.outputs.elasticsearch] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=>1}

原因分析:一旦在存储超过95%的磁盘中的节点上分配了一个或多个分片的任何索引,该索引将被强制进入只读模式。

解决办法:

在kibana控制台中的开发工具里面执行下面语句:

PUT /_settings
{
  "index": {
    "blocks": {
      "read_only_allow_delete": "false"
    }
  }
}

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Go