Elk Log Real-time analysis system

Source: Internet
Author: User
Tags kibana logstash

Logstash:https://download.elastic.co/logstash/logstash/logstash-2.2.2.tar.gz

elasticsearch:https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/ Elasticsearch/2.2.0/elasticsearch-2.2.0.tar.gz

Kibana:https://download.elastic.co/kibana/kibana/kibana-4.4.0-linux-x64.tar.gz

Installing the JDK Environment

Yum Install-y java-1.8.0-openjdk

Shutting down the firewall

Service Iptables Stop

Installing Elasticsearch

Elasticsearch to run with a non-root user

Groupadd Hadoop

Useradd-g Hadoop Hadoop

wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/ 2.2.0/elasticsearch-2.2.0.tar.gz

Download Plugin

./bin/plugin Install Mobz/elasticsearch-head

./bin/plugin Install Lmenezes/elasticsearch-kopf

Modifying the ELASTICSEARCH.YML configuration

Cluster.name:es_cluster
Node.name:node-1
Path.data:/home/hadoop/elasticsearch/data
Path.logs:/home/hadoop/elasticsearch/logs
network.host:192.168.233.131
network.port:9200

To detect if the installation was successful

Curl Http://192.168.233.131:9200/

Open Http://ip:9200/_plugin/head, Http://ip:9200/_plugin/kopf to view cluster status

Installing Kibana

wget https://download.elastic.co/kibana/kibana/kibana-4.4.0-linux-x64.tar.gz

Modify the KIBANA.YML configuration (mainly modify the IP of the Elasticsearch)

Open ip:5601 to see if the installation was successful

Installing Logstash

wget https://download.elastic.co/logstash/logstash/logstash-2.2.2.tar.gz

Simple Logstash Configuration

Input {stdin{}}
Output {
Elasticsearch {hosts=> ' 192.168.233.131 '}
}

Note: 1. Logstash to have data uploaded to Elasticsearch in order to create an index in Kibana

2, elasticsearch cluster becomes yellow state, can be processed by the following command

Curl-xput "Http://localhost:9200/_settings"-d '
{
"Number_of_replicas": 0
}‘

Elk Log Real-time analysis system

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.