Installation Logstash,elasticsearch,kibana three-piece set

Source: Internet
Author: User
Tags kibana logstash

Original address: http://www.cnblogs.com/yjf512/p/4194012.html

Logstash,elasticsearch,kibana three-piece set

Elk refers to the Logstash,elasticsearch,kibana three-piece set, which can form a log analysis and monitoring tool

Attention:

About the installation of the document, there are many on the network, can refer to, not all the letter, and three pieces of the respective version of a lot, the difference is not the same, need version matching to use. Recommended direct use of this set of official website: elkdownloads.

For example, I download a set of Logstash 1.4.2 + elasticsearch 1.4.2 + Kibana 3.1.2

Installing Elasticsearch

Download Elasticsearch 1.4.2

tar -xf elasticsearch-1.4.2.tar.gzmv elasticsearch-1.4.2 /usr/local/ln -s /usr/local/elasticsearch-1.4.2 /usr/local/elasticsearch

Installing Elasticsearch-servicewrapper

下载解压到/usr/local/elasticsearch/bin文件夹下/usr/local/elasticsearch/bin/service/elasticsearch start

Test Elasticsearch

[Root@localhost service]# curl-x GEThttp//localhost:9200/{ "status": 200,  "name":  "Fury",  "cluster_name": Span class= "hljs-string" > "Elasticsearch",  "version": { "number ": " 1.4.2 ", " Build_hash ": " Build_timestamp ":  "2014-12-16t14:11:12z",  "Build_snapshot": false, " lucene_version ": " 4.10.2 "},  "tagline":  "you Know, for Search"}      

Installing to a self-boot item

下载解压到/usr/local/elasticsearch/bin文件夹下/usr/local/elasticsearch/bin/service/elasticsearch install
Installing Logstash

Download Logstash 1.4.2

TAR-XF logstash-1.4.2
MV logstash-1.4.2/usr/local/
Ln-s/usr/local/logstash-1.4.2/usr/local/logstash

Test Logstash

-e ‘input { stdin { } } output { stdout {} }‘

Configure Logstash

/usr/local/logstash/etcvim /usr/local/logstash/etc/hello_search.conf输入下面:input {  stdin {    type => "human" }}output { stdout { codec => rubydebug } elasticsearch { host => "192.168.33.10" port => 9200 }}启动:/usr/local/logstash/bin/logstash -f /usr/local/logstash/etc/hello_search.conf
Installing Kibana

Note: Logstash 1.4.2 also comes with Kabana, but if you use your own Kibana after installation you will find a hint "Upgrade Required Your version of Elasticsearch is too old. Kibana requires Elasticsearch 0.90.9 or above. ". According to this post this is the problem of the Kibana 3.0.1 that comes with it. So the installation of Kibana self-reliable.

    • Download Kibana 3.1.2

Note: Now Kibanna can bring their own web services, Bin/kibana can be launched directly, it is recommended not to start with Nginx.

For details, refer to:

Http://kibana.logstash.es/content/kibana/v4/setup.html

Postscript

The installation process encountered a lot of problems, the most is the version problem, if you use the version of the package, you may encounter a lot of problems. So note that version consistency can bypass many bends.

Installation Logstash,elasticsearch,kibana three-piece set

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.