Elasticsearch启用API密钥

DevOps ELK评论5,253字数 152阅读0分30秒阅读模式

备份原配置

第一个节点

[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
  • 本文由 DevOps 发表于 2022年7月13日 15:17:36
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
  • Elasticsearch
yum安装Logstash ELK

yum安装Logstash

下载rpm包 [root@ip-172-31-0-46 ~]# wget https://artifacts.elastic.co/downloads/logstash/logstash-7.17.0...
EFK集群[案例] ELK

EFK集群[案例]

Elasticsearch集群配置信息 硬件配置信息 机器名/节点名 IP 内存 cpu 磁盘 us-prod-sre-eslog-node-1 10.0.3.77 32GB 16vcpu 7T us...

发表评论