您的当前位置:首页正文

ELKF搭建使用

2024-11-29 来源:个人技术集锦

###1.准备工作
jdk1.8 https://www.oracle.com/technetwork/java/javase/downloads/index.html
Elasticsearch 7.4.2 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz
elasticsearch-head https://github.com/mobz/elasticsearch-head/archive/master.zip
Kibana7.4.2 https://artifacts.elastic.co/downloads/kibana/kibana-7.4.2-linux-x86_64.tar.gz
Logstash7.4.2 https://artifacts.elastic.co/downloads/logstash/logstash-7.4.2.tar.gz
Filebeat7.4.2 https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.4.2-linux-x86_64.tar.gz



###2.安装Elasticsearch


###3.安装Kibana


../bin/logstash -f logstash-sample.conf 

###5.安装Filebeat
vim filebeat.yml (也可以自定义文件)

./filebeat -e -c filebeat.yml 

###6. kibana 浏览

默认配置即可 - -

配置好后,打开Discover

选择字段过滤

这样就可以看到我们的日志了 - -

显示全文