说明

Kibana 是一个 Elastic 公司推出的一个针对 es 的分析以及数据可视化平台,可以搜索、查看存放在 es 中的数据

Windows

安装步骤如下:

  1. 下载 Kibana:https://www.elastic.co/cn/downloads/kibana

    各版本:https://www.elastic.co/cn/downloads/past-releases#kibana

  2. 解压

  3. 配置 es 的地址信息(可选,如果 es 是默认地址以及端口,可以不用配置,具体的配置文件是 config/kibana.yml)

    1
    2
    3
    4
    5
    6
    # 端口
    server.port: 5601
    # 运行任意远程主机访问,localhost 只能本机访问
    server.host: "0.0.0.0"
    # 访问的 es 服务地址
    elasticsearch.url: "http://localhost:9200"
  4. 执行 ./bin/kibana 文件启动

  5. localhost:5601

图片

Kibana 安装好之后,首次打开时,可以选择初始化 es 提供的测试数据,也可以不使用。

Docker

  1. To start an Elasticsearch container for development or testing, run:
1
2
3
docker network create elastic
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.16.1
docker run --name es01-test --net elastic -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.16.1
  1. To start Kibana and connect it to your Elasticsearch container, run the following commands in a new terminal session:
1
2
docker pull docker.elastic.co/kibana/kibana:7.16.1
docker run --name kib01-test --net elastic -p 127.0.0.1:5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01-test:9200" docker.elastic.co/kibana/kibana:7.16.1
  1. To access Kibana, go to http://localhost:5601