ELK learning record 3: installation and configuration of elasticsearch, logstash and kibana (windows)

Precautions:

1.ELK version requires 5.X or above

2. The Elasticsearch5.x version must be based on jdk1.8, and the installation environment must use jdk1.8

3. The operating system windows10 is used as the test environment, and other environment commands are different, please note

4. This tutorial is suitable for complete offline installation

5. Download path of ELK installation package for windows version : https://pan.baidu.com/s/1-xU6kMY5M1G_Shpm0jPilA   Password: 39q4

 

Foreword:

This tutorial is the installation instructions of the winsdows10 system. The server address is the local address 127.0.0.1 as an example, and the project takes its own server address as an example.

 

1. Prepare the installation package

1.1 Installation package

 

1.2 Unzip to the elk folder

Second, install jdk1.8

To install jdk1.8 on Windows system, please implement Baidu to install it by yourself. I will not explain it here! ! !

As shown above, the environment variable configuration is complete.

3. Install Logstash

3.1 Create a Logstash test startup configuration file

Create a file under the elk\logstash-6.2.4\configfolder test.confand enter the following:

#enter
input{}
#filter
filter{}
#output
output{}

 

 

3.2 Start Logstash

D:\Software\elk\logstash-6.2.4Right-click under the logstash folder + shift,select 在此处打开命令窗口or 在此处打开Powershell窗口

implementbin\logstash -f config\test.conf

The above picture indicates that the startup is successful.

Fourth, install elasticsearch

4.1. Modify the ES configuration file:

Edit the configuration file elasticsearch.yml under the elasticsearch folder config :

(The configuration in elasticsearch.yml has no space before the colon, and a space after the colon, otherwise an error may be reported)

4.2 Start elasticsearch

Click elk\elasticsearch-6.2.4\binon the elasticsearch.batfile under

 

 

4.3 Startup successful verification

Access on the browser side127.0.0.1:9200

 

Five, install kibana

5.1 Modify the kibana configuration file

Edit the configuration file in the kibanafolder :configkibana.yml

server.host: "localhost"
elasticsearch.url: "http://localhost:9200"

Among them, localhost is subject to the actual ip address

5.2 Dynamic kibana

Click elk\kibana-6.2.4-windows-x86_64\binon the kibana.batfile under:

 

 

5.3 Startup Verification

browser access127.0.0.1:5601

 

 

Indicates that the startup was successful.

 

At this point, the ELK installation is complete!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325867552&siteId=291194637