下载所有需要文件
因为暂时没有相关的项目文件产生日志,所有选择tomcat安装jenkins可以产生较多的日志数据。
tomcat下载地址:Apache Tomcat® - Apache Tomcat 8 Software Downloads
jenkins下载地址:Releases · jenkinsci/jenkins · GitHub
ElasticSearch下载:Index of elasticsearch-local/7.6.0 (huaweicloud.com)
kibana下载地址:Index of kibana-local/7.6.0 (huaweicloud.com)
logstash下载地址:Index of logstash-local/7.6.0 (huaweicloud.com)
filebeat下载地址:Index of filebeat-local/7.6.0 (huaweicloud.com)
启动tomcat,安装jenkins
下载tomcat后解压,将下载好的jenkins.war放到tomcat目录下webapp文件中。./bin/startup.bat
启动elasticsearch、kibana、filebeat
解压elasticsearch,./bin/elasticsearch.bat
解压kibana,./bin/kibana.bat
解压filebeat,./filebeat.exe -e -c filebeat.yml
# filebeat相关配置文件
filebeat.inputs:
- type: log
paths:
- C:\Users\aleiw\scoop\apps\tomcat8\8.5.75\logs\*
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
name: filebeat222
output.elasticsearch:
hosts: ["localhost:9200"]
添加索引
查询数据