要不要也来分享分享一下啊

JS端调用search时候说没有权限,怎么处理?

Elasticsearch | 作者 yanliang941225 | 发布于2017年04月12日 | 阅读数:4953

js的请求代码:
client.search({
index: 'pinpoint-appliactionindex',
q: '*'
}, function (error, response) {
console.log("+++++++++++++++++++++++++++++++++++");
console.log(error);
console.log(response);
reply({"result":response});
});

接收到的错误:
{"result":{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/read/search] is unauthorized for user [kibana]"}],"type":"security_exception","reason":"action [indices:data/read/search] is unauthorized for user [kibana]"},"status":403}}
已邀请:

要回复问题请先登录注册