💡 有理想,但不妄想,|

little小新

园龄:2年6个月粉丝:8关注:0

📂ELK
🔖elk
2024-07-01 22:20阅读: 33评论: 0推荐: 0

5、ELK-Kibana-部署(源码安装)-用于展示日志

1、下载源码包:wget https://download.elastic.co/kibana/kibana/kibana-4.3.1-linux-x64.tar.gz
2、解压、将解压后的文件拷贝到/usr/local:
·tar -xf kibana-4.3.1-linux-x64.tar.gz
·mv kibana-4.3.1-linux-x64 /usr/local/
3、做软连接:
·ln -s /usr/local/kibana-4.3.1-linux-x64/ /usr/local/kibana
4、备份并修改yml文件:
·cd /usr/local/kibana/config
·备份:cp kibana.yml ./kibana.yml.bak
·vim kibana.yml
---------------------------------------
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.url: "http://192.168.177.10:9200"
kibana.index: ".kibana"
-----------------------------------------------------------------
5、kibana运行会占用前台、如果终端断了会停止、所以这里使用screen(屏风)来守护kibana进程
·安装screen:yum install -y screen
·开启screen:screen
--------------------------
#注意:如果把终端关了,可以使用 screen来恢复
1、先查看开启的屏风:screen -ls #这会显示屏风号
----------------------------------------------
[root@kibana ~]# screen -ls
There is a screen on:
1660.pts-0.kibana (Detached) #这里的1660就是屏风号
1 Socket in /var/run/screen/S-root.
-------------------------------------------------------
2、根据屏风号:screen -r 屏风号 #既可以恢复 关闭前的窗口
-----------------------------------------------------------------
6、开启kibana(注意要先开启screen):/usr/local/kibana/bin/kibana
----------------------------------------------------------------------
[root@kibana config]# /usr/local/kibana/bin/kibana
log [21:45:46.915] [info][status][plugin:kibana] Status changed from uninitialized to green - Ready
log [21:45:46.934] [info][status][plugin:elasticsearch] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [21:45:46.942] [info][status][plugin:kbn_vislib_vis_types] Status changed from uninitialized to green - Ready
log [21:45:46.949] [info][status][plugin:markdown_vis] Status changed from uninitialized to green - Ready
log [21:45:46.953] [info][status][plugin:metric_vis] Status changed from uninitialized to green - Ready
log [21:45:46.955] [info][status][plugin:spyModes] Status changed from uninitialized to green - Ready
log [21:45:46.964] [info][status][plugin:statusPage] Status changed from uninitialized to green - Ready
log [21:45:46.968] [info][status][plugin:table_vis] Status changed from uninitialized to green - Ready
log [21:45:46.976] [info][listening] Server running at http://0.0.0.0:5601
log [21:45:51.973] [info][status][plugin:elasticsearch] Status changed from yellow to yellow - No existing Kibana index found
log [21:45:54.568] [info][status][plugin:elasticsearch] Status changed from yellow to green - Kibana index ready
-----------------------------------------------------------------------------------------------------
7、访问kibana-端口5601:http://192.168.177.12:5601/

访问网页后、第一步先按'索引'绑定某个程序的日志

 

本文作者:little小新

本文链接:https://www.cnblogs.com/littlecc/p/17718597.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   little小新  阅读(33)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起