elk收集log日志——elk安装

架构

安装elasticsearch

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

elasticsearch监听9200端口,安装成功,访问如http://12.0.0.1:9200 可以看到对应的结果

配置文件目录

/etc/elasticsearch/

服务启动方式

sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service

安装kibana

https://www.elastic.co/guide/en/kibana/current/rpm.html

kibana监听5601端口,安装成功,访问http://12.0.0.1:5601 可以看到对应的结果

配置文件目录

/etc/kibana/

服务启动方式

sudo systemctl start kibana.service
sudo systemctl stop kibana.service

不想暴露5601端口,需要做nginx转发

 location / {
    proxy_pass  http://127.0.0.1:5601/; # 转发规则
 }

安装logstash

https://www.elastic.co/guide/en/logstash/current/installing-logstash.html

配置文件目录

/etc/logstash/

服务启动方式

sudo systemctl start logstash.service
sudo systemctl stop logstash.service

安装filebeat

在要抓取的log的服务器上安装filebeat

https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html

配置文件目录

/etc/filebeat/

安装redis

posted @   lizcao  阅读(268)  评论(0编辑  收藏  举报
编辑推荐:
· 理解Rust引用及其生命周期标识(下)
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
阅读排行:
· 2025成都.NET开发者Connect圆满结束
· 后端思维之高并发处理方案
· 千万级大表的优化技巧
· 在 VS Code 中,一键安装 MCP Server!
· 10年+ .NET Coder 心语 ── 继承的思维:从思维模式到架构设计的深度解析
点击右上角即可分享
微信分享提示