elastic创建只读账号

方法一 命令行创建 PUT /_security/user/esv_ro { "password" : "xxxx", "roles" : [ "read_only_role" ], "full_name" : "esv_ro", "email" : "read_only_user@

方法一

命令行创建

PUT /_security/user/esv_ro
{
  "password" : "xxxx",
  "roles" : [ "read_only_role" ],
  "full_name" : "esv_ro",
  "email" : "read_only_user@example.com"
}


PUT /_security/role/read_only_role
{
  "indices": [
    {
      "names": [ "*" ],
      "privileges": [ "view_index_metadata","read" ]
    }
  ]
}

方法二

图形化创建

LICENSED UNDER CC BY-NC-SA 4.0
Comment