Installation and simple application of Linux system Elk (i)

Source: Internet
Author: User
Tags kibana logstash

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.