给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows

Posted iDEAAM 爱地爱木

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows相关的知识,希望对你有一定的参考价值。

1. download the plugin of elasticsearch: 

下载 readonlyrest-1.14.0_es5.2.2.zip

 

2. install readonlyrest plugin: 

C:\Users\Administrator\Downloads\elasticsearch-5.2.2\bin\elasticsearch-plugin.bat install file:///d:/readonlyrest-1.14.0_es5.2.2.zip

 

3. open elasticsearch.yml add blow code:

readonlyrest:
    enable: true
    response_if_req_forbidden: Sorry, your request is forbidden.
    access_control_rules:
    - name: Full access with HTTP auth
      auth_key: admin:123456  #user: admin, password:123456
      type: allow

 

4. restart elasticsearch service.

5. done;

以上是关于给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows的主要内容,如果未能解决你的问题,请参考以下文章

给ElasticSearch和Kibana设置Https

ELK日志开启安全保护

Elasticsearch的分片和副本

ElasticSearch集群安装部署

搜索引擎 elasticsearch 5.2.2 在win8和linux上安装过程

ElasticSearch 5.2.2 安装及 head 插件的安装