新加一个节点部署kibana可视化
10.4.2.111 centos7 2C4G
yum源 ~]#rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch ~]#/etc/yum.repos.d/elasticsearch.repo [elasticsearch-8.x] name=Elastic repository for 8.x packages baseurl=https://artifacts.elastic.co/packages/8.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
安装
[root@ly-elasticsearch-secure-kibana kibana]# yum -y install kibana Installed: kibana.x86_64 0:8.2.2-1配置配置文件
编辑配置文件,只对接10.101.203.109 # cp kibana.yml kibana.yml-old8 ]# vim kibana.yml server.port: 5601 server.host: "0.0.0.0" server.name: "secure-kibana" # kibana名称 elasticsearch.hosts: ["http://10.4.2.109:9200"] # 连接es的信息 elasticsearch.username: "kibana_system" # 连接es的信息 elasticsearch.password: "密码" # 连接es的信息 logging: appenders: file: type: file fileName: /var/log/kibana/kibana.log layout: type: json root: appenders: - default - file pid.file: /run/kibana/kibana.pid i18n.locale: "zh-CN" # 修改中文
修改用户密码,因为新版本kibana不支持直接使用elastic用户
~]# /usr/share/elasticsearch/bin/elasticsearch-reset-password -u kibana_system -i This tool will reset the password of the [kibana_system] user. You will be prompted to enter the password. Please confirm that you would like to continue [y/N]y Enter password for [kibana_system]: Re-enter password for [kibana_system]: Password for the [kibana_system] user successfully reset. [root@ly-elasticsearch-secure107 ~]#重启kibana
systemctl restart kibana
前端访问http://10.4.2.111:5601



