This blog installed Elk version of the current version of the latest 6.3.0, because Elasticsearch is based on Java development, so the JDK version is required, in the 5.0 version, requires JDK version of not less than 1.8 can be normal and practical.
At the same time, Elasticsearch,logstash,kibana Three versions are best consistent, otherwise there will be errors due to version conflicts.
Start the installation steps below:
Installation of 1.elasticsearch
Download the official version of Elasticsearch: Https://www.elastic.co/cn/downloads/elasticsearch
Under the Linux system, download the Tar-type installation package.
Copy and paste the downloaded installation package into the OPT folder of the Linux system.
Open terminal system, CD to opt file, execute command:
Tar zxvf elasticsearch-6.3. 0. tar.gz
CD to elasticsearch-6.3.0, execute the Run command:
Bin/elasticsearch
After startup, enter in the browser:
127.0. 0.1:9200 or localhost:9200
If the following display appears, the installation starts Elasticsearch successfully
Installation of 2.logstash
Similar steps, unzip the run, give the command directly:
Tar zxvf logstash-6.3. 0 . TAR.GZCD Logstash-6.3. 0
LogStash needs to specify a configuration file to specify the flow of data, we create a first.conf file under the current directory with the following contents:
# Config input is beatsinput {beats {port="5044"}}# Data filtering filter {grok {match= = {"message"="%{combinedapachelog}"}} geoip {source="ClientIP"}}# output to native Esoutput {elasticsearch {hosts= ["localhost:9200" ] }}
After starting the command and displaying the diagram
Bin/logstash-f first.conf--config.reload.automatic
3.kibana installation Start-up
Tar zxvf kibana-6.3. 0-linux-x86_64.tar.gzcd kibana-6.3. 0-linux-x86_64bin/kibana
You can see that the port number is 5601, so the browser input 127.0.0.1:5601, as shown below:
Then we choose Dev tools to start creating the work:
For the first time, there will be a button to create a work, select the working, go to the official interface:
Here, our basic installation has been completed, about the installation and use of some plug-ins, will be described in the following blog, please pay attention.
Basic use
Installation and simple application of Linux system Elk (i)