Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 deployment EFK7

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

What this article shares with you is a detailed tutorial on centos7 deployment of EFK7. I believe most people don't know how to deploy it yet. In order to let you learn, I summarize the following content for you.

Environment:

System: CentOS Linux release 7.7.1908

Elasticsearch: elasticsearch-7.5.1-1.x86_64

Kibana: kibana-7.5.1-1.x86_64

Filebeat: filebeat-7.5.1-1.x86_64

1. Configure the yum environment for EFK

Rpm-- import https://packages.elastic.co/GPG-KEY-elasticsearch

Create a yum source file

Vim efk.repo:

[elasticsearch] name=Elasticsearch repository for 7.x packagesbaseurl= https://artifacts.elastic.co/packages/7.x/yumgpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearchenabled=0autorefresh=1type=rpm-md[elastic-7.x]name=Elastic repository for 7.x packagesbaseurl= https://artifacts.elastic.co/packages/7.x/yumgpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearchenabled=1autorefresh=1type=rpm-md[kibana-7.x]name=Kibana repository for 7.x packagesbaseurl= https://artifacts.elastic.co/packages/7.x/yumgpgcheck=1gpgkey=https:/ / artifacts.elastic.co/GPG-KEY-elasticsearchenabled=1autorefresh=1type=rpm-md

two。 Install EFK

Yum install-enablerepo=elasticsearch elasticsearch yum install kibana yum install filebeat

3. Configure EFK

a. Configure elasticsearch

Vim / etc/elasticsearch/elasticsearch.yml

Node.name: node-1 cluster.initial_master_nodes: ["node-1"] http.port: 9200 network.host: 0.0.0.0

b. Configure kibana

Vim / etc/kibana/kibana.yml

Server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: ["# ip is changed to the machine on which the elasticsearch service is deployed ip kibana.index:" .kibana "

c. Configure filebeat

Vim / etc/filebeat/filebeat.yml

Setup.kibana: host: "# ip is changed to the machine where the kibana service is deployed ip output.elasticsearch: hosts: [" localhost:9200 "] # ip to the machine ip where the elasticsearch service is deployed. I have a machine here. So localhost equals 11.22 filebeat.inputs:-type: log enabled: false paths: # path to log collection-/ var/log/*.log

Start the EFK service

Systemctl start elasticsearch.service

If you have questions about the startup of elasticsearch, click: https://blog.51cto.com/liuxiaolan/2463905

Systemctl start kibana.service

Systemctl start filebeat.service

On the deployment of centos7 EFK7 to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report