logstash寫es大量報錯,主要內容以下:html
retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "reason"=>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
也能夠直接在kibana的console中直接運行如下命令:json
PUT /_all/_settings {"index.blocks.read_only_allow_delete": null}
主要是由於磁盤不夠用了。Elasticsearch磁盤佔用大於95%時將全部索引置爲只讀。若是你本身手動刪除了數據,Elasticsearch不會給你自動切換回來,不過你能夠手動去修改。就是用上面的命令就行了。api