- 使用Docker安装Kibana
- Elasticsearch Guide
- 如何切换中文
- docker 安装步骤
- ~~docker network create elastic ~~(已存在可跳过)
- ~~docker pull docker.elastic.co/elasticsearch/elasticsearch:8.2.3 ~~
- 当您首次启动Elasticsearch时,以下安全配置会自动发生:
- docker run —name es-node01 —net elastic -p 9200:9200 -p 9300:9300 -t docker.elastic.co/elasticsearch/elasticsearch:8.2.3
- 密码可以重置
- elastic / qL5zEtT=J6tzHFRAL44s
使用Docker安装Kibana
https://www.elastic.co/guide/en/kibana/8.2/docker.html
Kibana功能
https://www.elastic.co/cn/kibana/features
配置
https://www.elastic.co/guide/cn/kibana/current/settings.html
Elasticsearch Guide
https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
如何切换中文
在config/kibana.yml添加
i18n.locale: “zh-CN”
docker 安装步骤
~~docker network create elastic ~~(已存在可跳过)
~~docker pull docker.elastic.co/elasticsearch/elasticsearch:8.2.3 ~~
当您首次启动Elasticsearch时,以下安全配置会自动发生:
- 为传输和HTTP层生成证书和密钥。
- 传输层安全(TLS)配置设置写入elasticsearch.yml。
- 为elastic用户生成密码。
- 为Kibana生成注册令牌。
- 运行es:
docker run —name es-node01 —net elastic -p 9200:9200 -p 9300:9300 -t docker.elastic.co/elasticsearch/elasticsearch:8.2.3
以下运行日志注意密码信息:
—————————————————————————————————————————
-> Elasticsearch security features have been automatically configured!
-> Authentication is enabled and cluster connections are encrypted.
-> Password for the elastic user (reset with bin/elasticsearch-reset-password -u elastic):
qL5zEtT=J6tzHFRAL44s
-> HTTP CA certificate SHA-256 fingerprint:
1ca2796593a4183f76e3049c3dc2d79967f30b8100459491706d77ff2934043b
-> Configure Kibana to use this cluster:
Run Kibana and click the configuration link in the terminal when Kibana starts.
Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):
eyJ2ZXIiOiI4LjIuMyIsImFkciI6WyIxNzIuMTguMC4yOjkyMDAiXSwiZmdyIjoiMWNhMjc5NjU5M2E0MTgzZjc2ZTMwNDljM2RjMmQ3OTk2N2YzMGI4MTAwNDU5NDkxNzA2ZDc3ZmYyOTM0MDQzYiIsImtleSI6Imw1Njktb0VCZlEyeHNOVWZjLTdVOk1melZIUUhKUkFxX1VqMzlab01NMFEifQ==
-> Configure other nodes to join this cluster:
Copy the following enrollment token and start new Elasticsearch nodes with bin/elasticsearch --enrollment-token <token> (valid for the next 30 minutes):
*eyJ2ZXIiOiI4LjIuMyIsImFkciI6WyIxNzIuMTguMC4yOjkyMDAiXSwiZmdyIjoiMWNhMjc5NjU5M2E0MTgzZjc2ZTMwNDljM2RjMmQ3OTk2N2YzMGI4MTAwNDU5NDkxNzA2ZDc3ZmYyOTM0MDQzYiIsImtleSI6Im1aNjktb0VCZlEyeHNOVWZjLTdpOjhvZW9HRnJZUktxSWR4Sjlja3dfNmcifQ==
If you’re running in Docker, copy the enrollment token and run:docker run -e "ENROLLMENT_TOKEN=<token>" docker.elastic.co/elasticsearch/elasticsearch:8.2.3
—————————————————————————————————————————
在新的终端会话中,启动Kibana并将其连接到您的Elasticsearch容器:
~~docker pull docker.elastic.co/kibana/kibana:8.2.3 ~~(已存在可跳过)
docker run —name kib-01 —net elastic -p 5601:5601 docker.elastic.co/kibana/kibana:8.2.3
- 要访问Kibana,请单击终端中生成的链接。
- 在浏览器中,粘贴您在启动Elasticsearch时复制的注册令牌,然后单击按钮将您的Kibana实例与Elasticsearch连接起来。
- 使用启动Elasticsearch时生成的密码以elastic用户身份登录Kibana。
- http://0.0.0.0:5601/
密码可以重置
elastic / qL5zEtT=J6tzHFRAL44s
