Kibana 安装教程-Elasticsearch 可视化工具

这篇博客介绍了如何安装Kibana 5.6.0,包括下载对应Elasticsearch版本的安装包,解压到指定目录,配置Kibana的.yml文件以连接远程Elasticsearch,以及启动Kibana并解决可能出现的报错。成功启动后,可以通过http://localhost:5601访问,并在Dev Tools中进行搜索操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装Kibana

下载

  • 查看 Elasticsearch 的版本号:
    • root@Search02# curl 'http://192.168.1.123:9200/?pretty'
      {
        "name" : "es-123",
        "cluster_name" : "es-cluster",
        "cluster_uuid" : "P2cC5ZKKT-eonU3ePcms3g",
        "version" : {
          "number" : "5.6.0",
          "build_hash" : "781a835",
          "build_date" : "2017-09-07T03:09:58.087Z",
          "build_snapshot" : false,
          "lucene_version" : "6.6.0"
        },
        "tagline" : "You Know, for Search"
      }
      
  • 下载对应版本的 Kibana 安装包。博主下载的版本是 5.6.0 , windows 版本:Kibana-5.6.0.zip
  • 解压安装包到指定目录。博主解压到 D:\software\devTools\kibana-5.6.0

配置

  • 更多配置信息,参考官方文档
  • 修改 ${Kibana_HOME}/config目录下的 kibana.yml。由于博主的 Elasticsearch 部署在其他机器,所以需要修改相应的 URL。
    • elasticsearch.url: "http://192.168.1.123:9200"

启动

  • 进入 ${Kibana_HOME}/bin,运行:./kibana.bat
    • 如果发生报错,而且报错信息类似Error: Cannot find module 'babel-preset-react',执行以下命令:
      • npm install babel-preset-react
      • 如果有多次重复报错类似的信息,直接执行:
        • npm install
    • 顺利启动时,输出以下信息:
    • $ ./kibana.bat
      {"type":"response","@timestamp":"2019-04-08T03:54:38Z","tags":[],"pid":19204,"method":"get","statusCode":304,"req":{"url":"/ui/favicons/favicon-16x16.png","method":"get","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://localhost:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9","if-none-match":"\"f33f077bfe13045136046c93b6180be0379386ff\"","if-modified-since":"Wed, 06 Sep 2017 17:02:20 GMT"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5601/app/kibana"},"res":{"statusCode":304,"responseTime":4,"contentLength":9},"message":"GET /ui/favicons/favicon-16x16.png 304 4ms - 9.0B"}
      {"type":"response","@timestamp":"2019-04-08T03:54:38Z","tags":[],"pid":19204,"method":"post","statusCode":200,"req":{"url":"/elasticsearch/_msearch","method":"post","headers":{"host":"localhost:5601","connection":"keep-alive","content-length":"457","accept":"application/json, text/plain, */*","origin":"http://localhost:5601","kbn-version":"5.6.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","content-type":"application/x-ndjson","referer":"http://localhost:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"http://localhost:5601/app/kibana"},"res":{"statusCode":200,"responseTime":21,"contentLength":9},"message":"POST /elasticsearch/_msearch 200 21ms - 9.0B"}
      
      
  • 访问 Kibana。默认情况下,Kibana 运行在5601 端口。

    搜索

    • 在 Dev Tools 输入搜索条件即可:
      • 在这里插入图片描述

    小结

    • 这里只是一个简单的安装教程和搜索演示,更多搜索引擎的内涵需要小伙伴们自己去发掘。祝大家工作顺利,生活愉快~
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值