美文网首页
kibana安装

kibana安装

作者: 小山居 | 来源:发表于2020-02-25 01:27 被阅读0次

安装Kiabna

Kibana是一个为 ElasticSearch 提供的数据分析的 Web 接口。可使用它对日志进行高效的搜索、可视化、分析等各种操作。

Kiabna的介绍可查考官方的说明:https://www.elastic.co/cn/products/kibana

下载地址为:https://www.elastic.co/cn/downloads/kibana

下载下来,解压如下

file

修改config / kibana.yml文件,加入以下内容:

server.port: 5601  
server.name: "kibana"  
server.host: "127.0.0.1"  
elasticsearch.url: "http://127.0.0.1:9200" 

然后执行bin目录下的kibana.bat启动服务

file

浏览器访问地址:http://127.0.0.1:5601/

file

出现警告

Unable to fetch mapping. Do you have indices matching the pattern?

不管怎么弄,都是提示上面的错误!!!最后在网上找到中说法是,没有往Elasticsearch中插入数据所引起的:

https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/73791/4

https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html

https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html

在上面的两个网址中找到了解决方法:

在Sense中执行以下数据就可以了

PUT /logstash-2017.08.13
{
  "mappings": {
    "log": {
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      }
    }
  }
}

然后在返回到kibana首页,就会发现不会出现警告了!!!

file

然后点击"Create"

参考链接
原文链接:https://blog.csdn.net/u011781521/article/details/77139701
「公众号:天山云海」欢迎关注和转载,珍惜每一次偶遇

相关文章

网友评论

      本文标题:kibana安装

      本文链接:https://www.haomeiwen.com/subject/eiuoqhtx.html