错误:blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
解决办法:
批量设置索引
curl -XPUT -H "Content-Type: application/json" http://xxx.xxx.xxx.xxx:19200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
单个索引设置
curl -XPUT 'http://xxx.xxx.xxx.xxx:19200/monitorscreen_user_active_month/_settings' -H 'Content-Type: application/json' -d '{"index.blocks.read_only_allow_delete": false}'