ELK principle + deployment collection log

ELK flow chart

Insert picture description here

1. First prepare the environment of two centos7

192.168.27.136 (own ip) install jdk elasticsearch kibana
192.168.27.137 (own ip) install jdk logstash
Insert picture description here

2. Turn off the firewall, setenforce

Insert picture description here

3. Synchronize the current time

Insert picture description here
Insert picture description here

4. Upload the installation package

Upload on a virtual machine (136) # own ip
Insert picture description here
another one (137) # own ip
Insert picture description here

5. Start installation configuration 136

Install jdk, both must be installed, because they are both in java environment, remember to check if the installation is successful after installation

Insert picture description here

Install elasticsearch

Insert picture description here

Configure elasticsearch

file path
Insert picture description here
Insert picture description here
Insert picture description here

Start elasticsearch to view port
Insert picture description here
Insert picture description here

6. Start installation configuration 137

Install jdk

Insert picture description here

Install logstash

Insert picture description here
Configuration index
Insert picture description here
Insert picture description here

Give permission

Insert picture description here

Restart logstash
Insert picture description here

7. Kibana 136

Insert picture description here

Place kibana

Insert picture description here
Insert picture description hereInsert picture description here

Dynamic kibana

Insert picture description hereInsert picture description here

View elasticsearch logs

Insert picture description here

8. Visit the page

Insert picture description here

Add index
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200916115956583.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1EyNzQ5NDg0NTE=,size_16,color_FFFFFF,t_70#pic_center)

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/Q274948451/article/details/108614534