Elasticsearch启用API密钥

DevOps ELK评论2,122字数 768阅读2分33秒阅读模式

备份原配置

第一个节点

[centos@prod-es-1 ~]$ cd /data/elasticsearch-7.17.5/config/
[centos@prod-es-1 config]$ cp elasticsearch.yml elasticsearch.yml713

第二个节点

[centos@prod-es-2 ~]$ cd /data/elasticsearch-7.17.5/config/
[centos@prod-es-2 config]$ cp elasticsearch.yml elasticsearch.yml713

第三个节点

[centos@prod-es-3 ~]$ cd /data/elasticsearch-7.17.5/config/
[centos@prod-es-3 config]$ cp elasticsearch.yml
elasticsearch.yml      elasticsearch.ymlback  
[centos@prod-es-3 config]$ cp elasticsearch.yml elasticsearch.yml713

添加配置

第一个节点

[centos@prod-es-1 config]$ vim elasticsearch.yml
xpack.security.authc.api_key.enabled: true

第二个节点

[centos@prod-es-2 config]$ vim elasticsearch.yml
xpack.security.authc.api_key.enabled: true

第三个节点

[centos@prod-es-3 config]$ vim elasticsearch.yml
xpack.security.authc.api_key.enabled: true

配置完重启服务生效

查看kibana

  • 可以自己创建api密钥

Elasticsearch启用API密钥

 

DevOps
  • 本文由 发表于 2022年7月13日 15:17:36
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
EFK集群[案例] ELK

EFK集群[案例]

Elasticsearch集群配置信息 硬件配置信息 机器名/节点名 IP 内存 cpu 磁盘 us...
评论  0  访客  0

发表评论