Elasticsearch基础入门(3)整合kibana


声明:本文转载自https://my.oschina.net/codingcloud/blog/1616337,转载目的在于传递更多信息,仅供学习交流之用。如有侵权行为,请联系我,我会及时删除。

前言

Kibana 是一个开源的分析和可视化平台。它提供搜索、查看和与存储在 Elasticsearch 索引中的数据进行交互的功能。可以轻松地执行高级数据分析,并在各种图表、表格和地图中可视化数据。

本篇文章是基于ElasticSearch基础上来写的,为了更好地理解请先移步

-->《ElasticSearch基础入门》(1)安装启动与配置<---

-->《ElasticSearch基础入门》(2)与ES的交互<---

 

下载与安装

[root@localhost tools]# wget https://artifacts.elastic.co/downloads/kibana/kibana-6.1.3-linux-x86_64.tar.gz [root@localhost tools]# tar -xzvf kibana-6.1.3-linux-x86_64.tar.gz

采坑提醒

kibana和elasticSearch的版本最好要保持一致,不然启动kibana会报错。

解压后kibana的目录结构是这样的:

配置

我们用vim编辑 config目录下的 kibana.yml , 我们先来看下目前要用到的主要配置

# Kibana is served by a back end server. This setting specifies the port to use. # 自定义端口 server.port: 5601  # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values. # The default is 'localhost', which usually means remote machines will not be able to connect. # To allow connections from remote users, set this parameter to a non-loopback address. # 自定义IP server.host: "172.19.26.110"  # The URL of the Elasticsearch instance to use for all your queries. # ElasticSearch的IP地址 elasticsearch.url: "http://172.19.26.110:9200" 

这里我们只需要配置 server.port 、server.host 、elasticsearch.url 即可,最简单配置其实只配置elasticsearch.url就行了,因为我的Linux环境是搭建在虚拟机里的,所以为了管理方便我需要在宿主机来访问,所以会配置kibana的端口和IP。端口可以改但建议使用kibana默认端口。

 

启动

打开 kibana安装目录,执行 ./bin/kibana启动服务:

[elasticsearch@localhost kibana-6.1.2]$ ./bin/kibana   log   [09:34:07.074] [info][status][plugin:kibana@6.1.2] Status changed from uninitialized to green - Ready   log   [09:34:07.191] [info][status][plugin:elasticsearch@6.1.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch   log   [09:34:07.278] [info][status][plugin:console@6.1.2] Status changed from uninitialized to green - Ready   log   [09:34:07.313] [info][status][plugin:metrics@6.1.2] Status changed from uninitialized to green - Ready   log   [09:34:07.417] [info][status][plugin:elasticsearch@6.1.2] Status changed from yellow to green - Ready   log   [09:34:07.903] [info][status][plugin:timelion@6.1.2] Status changed from uninitialized to green - Ready   log   [09:34:07.907] [info][listening] Server running at http://172.19.26.110:5601 

然后通过浏览器访问http://172.19.26.110:5601,如下图:

到现在为止,我们的kibana平台就搭建好了,我们可以在左侧菜单栏 Dev Tools 控制台就可以通过表达式来操作elasticSearch服务了,如下:

 

本文发表于2018年02月01日 10:32
(c)注:本文转载自https://my.oschina.net/codingcloud/blog/1616337,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如有侵权行为,请联系我们,我们会及时删除.

阅读 1944 讨论 0 喜欢 0

抢先体验

扫码体验
趣味小程序
文字表情生成器

闪念胶囊

你要过得好哇,这样我才能恨你啊,你要是过得不好,我都不知道该恨你还是拥抱你啊。

直抵黄龙府,与诸君痛饮尔。

那时陪伴我的人啊,你们如今在何方。

不出意外的话,我们再也不会见了,祝你前程似锦。

这世界真好,吃野东西也要留出这条命来看看

快捷链接
网站地图
提交友链
Copyright © 2016 - 2021 Cion.
All Rights Reserved.
京ICP备2021004668号-1