elk Learning Series (a) - Windows Installation

What is the elk?

  Current understanding, is to collect logs, set of tools to find the problem from the log. . . .

      (Why collect logs, logs have any questions, do not know, dpq ...)

    There are three tools

  elasticsearch: At the name has a search function. He is said to Big Brother, the main storage, the core technology.

   Logstash: collect logs. . . A delivery, but also to the people for free treatment

   kibana: visualization tools. . .

 

How to build?

First official website https://www.elastic.co/ download a good three tools zip archive and extract.

Installed jdk (at least version 1.8)

(1) elasticsearch to build

Go to the bin directory, double-click the file elasticsearch.bat, start elasticsearch service.

Open your browser, enter HTTP: // localhost: 9200 / , if the following results appear, the installation was successful, start the service:

 

 

 

! To glimpse Huarong, install elasticsearch-head plug, node.js, grunt like balabala. . .

(Refer to blog: https: //blog.csdn.net/qq3401247010/article/details/78742524 !!! I just get according to his blog, thank you very much)

(2) Logstash Installation

Logstash.conf create a new file in the bin directory, as follows :( most simple, only source of data input, set here to console input, and output, here is elasticsearch)

{INPUT
    stdin {}
}
Output {
elasticsearch {
  the hosts => "127.0.0.1"
  }
stdout {
CODEC => rubydebug
}
}
then enters dos cmd command line, enter Logstash bin directory, enter the command logstash -f logstash.conf

(3) kibana installation (the most simple matter)

Double-click the file kibana.bat, visit localhost: 5601.

(Crud can be elasticsearch in devtool inside)

 

Out of service

All Ctrl + c then Y!

 

Boot sequence

e->l->k

 

Guess you like

Origin www.cnblogs.com/wtx2333/p/11628633.html