logstash从mysql向es同步数据报错:
retrying failed action with response code: 403 ({"type"=>"cluster_block_exce
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)];"})
经过排查发现是服务器磁盘空间满了导致es索引为只读状态。删掉数据库多余备份,磁盘空间大大空余。然后再执行命令:
curl -XPUT -H 'Content-Type: application/json' http://106.14.46.249:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
参考文章:https://blog.youkuaiyun.com/toocruel/article/details/82864416