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.
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