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}}
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}}
0 个回复