elasticsearch添加自定义用户
添加用户和角色
curl --insecure -u elastic:Transfar@2022 -XPOST 'https://192.168.30.149:9200/_security/user/esuer?pretty' -H 'Content-Type: application/json' -d ' { "password":"Transfar@2023", "roles" : ["superuser"] }' curl --insecure -u esuer:Transfar@2023 -XGET 'https://192.168.30.149:9200/_cat/indices?v&pretty' curl --insecure -XGET -H 'Content-type: application/json' -u elastic:Transfar@2022 'https://192.168.30.149:9200/_xpack/security/role/superuser?pretty'
kibana页面添加
API创建用户
本文来自博客园,作者:不懂123,转载请注明原文链接:https://www.cnblogs.com/yxh168/p/17097833.html