AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1024816
Accepted
skyler
skyler
Asked: 2020-07-11 12:09:58 +0800 CST2020-07-11 12:09:58 +0800 CST 2020-07-11 12:09:58 +0800 CST

你能帮我理解这个 ElasticSearch 权限错误吗?

  • 772

我正在尝试向 Elastic.co 托管的 ElasticSearch 实例发出请求。我收到此错误:

AuthorizationException(403, 'security_exception', 'action [indices:monitor/stats] is unauthorized for user [my-username]')

这具体告诉我我无法访问的内容是什么?是什么indices:意思,是什么monitor意思monitor/stats?此错误消息试图告诉我什么?

elasticsearch
  • 2 2 个回答
  • 2176 Views

2 个回答

  • Voted
  1. Best Answer
    Andrei Sura
    2020-07-11T12:47:19+08:002020-07-11T12:47:19+08:00

    我认为这些是索引权限

    https://www.elastic.co/guide/en/elasticsearch/reference/current/security-privileges.html

    monitor - 
    All cluster read-only operations, like cluster health and state, hot threads, node info, node and cluster stats, and pending cluster tasks.
    
    • 1
  2. Thad Megow
    2020-07-11T13:04:34+08:002020-07-11T13:04:34+08:00

    根据您希望使用的 Andrei 共享的安全权限,您需要首先创建一个新的自定义角色,选择其中的权限 -> https://www.elastic.co/guide/en/elasticsearch/reference/current/定义-roles.html

    我想知道您是否可以使用内置角色来到达您想要的位置-> https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-roles.html

    尝试使用用户 api 更新现有用户以分配新角色 -> https://www.elastic.co/guide/en/elasticsearch/reference/6.8/security-api.html#security-user-apis

    POST /_xpack/security/user/jacknich
    {
      "password" : "j@rV1s",
      "roles" : [ "admin", "other_role1" ],
      "full_name" : "Jack Nicholson",
      "email" : "[email protected]",
      "metadata" : {
        "intelligence" : 7
      }
    }
    
    • 1

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve