【Kibana01】企业级日志分析系统ELK之Kibana的安装与介绍

Kibana 图形显示

Kibana 介绍

Kibana 是一款开源的数据分析和可视化平台,它是 Elastic Stack 成员之一,设计用于和 Elasticsearch 协作,可以使用 Kibana 对 Elasticsearch 索引中的数据进行搜索、查看、交互操作,您可以很方便的利用 图表、表格及地图对数据进行多元化的分析和呈现。

Kibana 可以使大数据通俗易懂。基于浏览器的界面便于您快速创建和分享动态数据仪表板来追踪 Elasticsearch 的实时数据变化。

Kibana 基于 TypeScript 语言开发

Kibana 官方下载链接:

https://www.elastic.co/cn/downloads/kibana

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

镜像网站下载链接:

Index of /elasticstack/7.x/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

官方demo

Elastic Demoshttps://demo.elastic.co/

安装并配置 Kibana

可以通过包或者二进制的方式进行安装,可以安装在独立服务器,或者也可以和elasticsearch的主机安装在 一起

注意: Kibana的版本要和 Elasticsearch 相同的版本,否则可能会出错

官方说明:

GitHub - elastic/kibana: Your window into the Elastic StackYour window into the Elastic Stack. Contribute to elastic/kibana development by creating an account on GitHub.https://github.com/elastic/kibana

下载安装

基于性能原因,建议将Kibana安装到独立节点上,而非和ES节点复用

下载链接

https://www.elastic.co/cn/downloads/kibana

https://mirrors.tuna.tsinghua.edu.cn/elasticstack/

Ubuntu 安装

root@ubuntu2204 \~#https://artifacts.elastic.co/downloads/kibana/kibana-8.6.1-amd64.deb

root@ubuntu2204 \~#wget

https://mirrors.tuna.tsinghua.edu.cn/elasticstack/8.x/apt/pool/main/k/kibana/kibana-8.6.1-amd64.deb

root@es-node1 \~#wget

https://mirrors.tuna.tsinghua.edu.cn/elasticstack/7.x/apt/pool/main/k/kibana/kibana-7.6.2-amd64.deb

root@es-node1 \~#dpkg -i kibana-7.6.2-amd64.deb

CentOS 安装
复制代码
[root@es-node1 ~]#wget https://mirrors.tuna.tsinghua.edu.cn/elasticstack/7.x/yum/7.6.2/kibana-7.6.2-x86_64.rpm
[root@es-node1 ~]#yum localinstall kibana-7.6.2-x86_64.rpm

修改配置

复制代码
[root@es-node1 ~]#vim  /etc/kibana/kibana.yml 
[root@es-node1 ~]#grep  "^[a-Z]" /etc/kibana/kibana.yml 
server.port: 5601  #监听端口,此为默认值

server.host: "0.0.0.0" #修改此行的监听地址,默认为localhost,即:127.0.0.1:5601

#修改此行,指向ES任意服务器地址或多个节点地址实现容错,默认为localhost
elasticsearch.hosts: 
["http://10.0.0.101:9200","http://10.0.0.102:9200","http://10.0.0.103:9200"] 
i18n.locale: "zh-CN"   #修改此行,使用"zh-CN"显示中文界面,默认英文

#8.X版本新添加配置,默认被注释,会显示下面提示
server.publicBaseUrl: "http://kibana.chen.org"

启动 Kibana 服务并验证

复制代码
#默认没有开机自动启动,需要自行设置
[root@kibana ~]#systemctl enable --now kibana
[root@kibana ~]#systemctl status kibana
[root@kibana ~]#ss -ntl |grep 5601
LISTEN 0      511          0.0.0.0:5601      0.0.0.0:*  

 #默认以kibana用户启动服务
[root@kibana ~]#id kibana 
uid=114(kibana) gid=119(kibana) groups=119(kibana)

使用 Kibana

查看和操作Web界面

#浏览器访问下面链接

http://kabana-server:5601

相关推荐
wno7045 分钟前
Spring Boot配合Hibernate Validator参数校验
spring boot·后端·hibernate
赵庆明老师26 分钟前
用同一个用户登录宝塔面板的ftp与Linux的sftp
linux·运维·服务器
astronautyi28 分钟前
Go 运行时内存分配与 GC 位图深度剖析
开发语言·后端·golang
码云数智-园园31 分钟前
我为什么从微服务退回单体架构
微服务·云原生·架构
techdashen35 分钟前
Go 中如何处理错误
开发语言·后端·golang
山君爱摸鱼44 分钟前
堡垒机远程服务器故障收集
运维·服务器
不会就选b1 小时前
Linux之socket编程(六)----TCP-->模拟shell命令
linux·运维·tcp/ip
GoGeekBaird1 小时前
Agent 时代,你的生产环境,真的敢让它裸奔吗
后端·agent
IT_陈寒1 小时前
Redis Pipeline用错竟比不用还慢,这个坑我帮你踩过了
前端·人工智能·后端
名字还没想好☜1 小时前
Go 1.21 context.WithoutCancel 实战:父 context 取消了,收尾任务还要继续跑
开发语言·后端·golang·go