我是 Elastic search 新手,使用 Elastic search 版本 7.7.1
我想通过以下方式生成 OAuth 令牌弹性搜索文档 https://www.elastic.co/guide/en/elasticsearch/reference/7.7/security-api-get-token.html
当我尝试以下调用时,通过 Kibana 根据文档获取 OAuth 令牌:
POST /_security/oauth2/token
{
"grant_type" : "password",
"username" : "elastic",
"password" : "password_for_elastic_super_user"
}
然后出现以下错误:
{
"error" : {
"root_cause" : [
{
"type" : "invalid_index_name_exception",
"reason" : "Invalid index name [_security], must not start with '_', '-', or '+'",
"index_uuid" : "_na_",
"index" : "_security"
}
],
"type" : "invalid_index_name_exception",
"reason" : "Invalid index name [_security], must not start with '_', '-', or '+'",
"index_uuid" : "_na_",
"index" : "_security"
},
"status" : 400
}
谁能帮忙解决这个问题吗?