【发布时间】:2021-01-24 16:39:21
【问题描述】:
我正在使用 Kibana 6.8 中的开发工具通过查询删除文档,但我收到了类型为“cluster_block_exception”的 403,原因是“被阻止:[FORBIDDEN/8/index write (api)];”。
我使用了以下命令:
curl -XPOST "http://localhost:9200/my_index/_delete_by_query" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}'
这是一个示例响应:
{
"took": 26,
"timed_out": false,
"total": 2,
"deleted": 0,
"batches": 1,
"version_conflicts": 0,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures": [
{
"index": "my_index",
"type": "doc",
"id": "TnOKCHMBlyetxY-P6HZ_",
"cause": {
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/8/index write (api)];"
},
"status": 403
},
{
"index": "my_index",
"type": "doc",
"id": "T3OKCHMBlyetxY-P6XYF",
"cause": {
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/8/index write (api)];"
},
"status": 403
}
]
}
任何有关如何设置适当权限的帮助将不胜感激。谢谢。
【问题讨论】:
-
可能是index.blocks.write引起的,可以查看文档:elastic.co/guide/en/elasticsearch/reference/6.8/…
标签: elasticsearch elastic-stack kibana-6 elasticsearch-6.8