ELK

本篇介绍如何通过filebeat来采集springboot日志1、设置springboot日志输出路径logging:file:path:D:/logs2、设置filebeat配置参数编辑filebeat.yml文件的filebeat.inputs参数filebeat.inputs:-type:logenabled:truepaths:-D:\logs\*json.keys_under_root:truejson.overwrite_keys:truetags:["tomcat"]exclude_files:['.gz$']3、启动filebeat...
阅读全文 →
本篇介绍如何通过filebeat来收集nginx日志1、filebeat启用nginx模块linux:./filebeatmodulesenablenginxwindows:filebeat.exemodulesenablenginx2、配置nginx日志参数修改modules.d/nginx.yml文件-module:nginxaccess:enabled:truevar.paths:["D:/knight/nginx-1.17.0/logs/*"]error:enabled:truevar.paths:["D:...
阅读全文 →
1、访问官网下载安装文件https://www.elastic.co/cn/beats/filebeat2、修改配置文件修改配置文件filebeat.yml,配置elasticsearch和kibana访问地址output.elasticsearch:hosts:["localhost:9200"]username:"elastic"password:"changeme"setup.kibana:host:"localhost:5601"3、启动命令linux:sudo./filebeat-e-cfile...
阅读全文 →
1、访问官网地址下载安装文件Kibana:数据的探索、可视化和分析|Elastic2、修改配置文件打开config/kibana.yml文件,设置elasticsearch的访问地址elasticsearch.hosts:["http://localhost:9200"]3、启动命令linux:bin/kibanawindows:bin\kibana.bat说明:初次启动或硬件配置一般的话,启动命令执行后暂时无任何反应,大概需要等待5分钟左右才会启动成功,需耐心等待。4、验证是否启动成功打开浏览器访问http://localhost:5601,...
阅读全文 →
1、访问官网进行下载安装文件https://www.elastic.co/cn/elasticsearch/2、启动命令linux:bin/elasticsearchwindows:bin\elasticsearch.bat3、验证是否启动成功curlhttp://localhost:9200返回如下内容表示启动成功
阅读全文 →
关于作者

程序进阶之路

一线 Java 后端工程师,专注 Spring Cloud 微服务架构与分布式系统实战。近年深耕 AI 工具落地(Claude Code)、Python 设计模式与 MinIO 对象存储。保持每周 2-3 篇高质量技术输出。

公众号二维码

扫码关注公众号