Files
mall/document/elk/elk.md
2018-09-11 15:54:16 +08:00

22 lines
728 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#windows下的elk环境搭建
##下载
下载页面https://www.elastic.co/downloads/past-releases
ElasticSearch:https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-6
Logstash:https://www.elastic.co/downloads/past-releases/logstash-2-4-0
Kibana:https://www.elastic.co/downloads/past-releases/kibana-4-6-0
##安装
下载zip包并进行解压
##运行
###logstash配置运行
添加logstash配置文件logstash-springboot.conf
安装logstash-codec-json_lines插件plugin install logstash-codec-json_lines
运行logstash命令logstash -f logstash-springboot.conf
##SpringBoot整合logstash
引入依赖包https://github.com/logstash/logstash-logback-encoder
添加配置文件logback-spring.xml