Back to 日志集中架构方案

See Also rsyslogJavaJavaScript

Elastic_Stack

1. quick-start guide

https://www.elastic.co/start

1.1. Get Elasticsearch

1.1.1. Installing from the RPM repository

Create a file called elasticsearch.repo in the /etc/yum.repos.d/

# vi /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

yum install elasticsearch -y
chkconfig --add elasticsearch
sudo service elasticsearch start
curl http://localhost:9200/

1.2. Get Kibana

$ sudo yum install kibana -y
$ sudo chkconfig --add kibana
$ sudo service kibana start

1.3. Install X-Pack

cd /usr/share/elasticsearch
bin/elasticsearch-plugin install x-pack
# license needed
cd /usr/share/kibana
bin/kibana-plugin install x-pack

1.4. Open Kibana

2. Reference

MainWiki: Elastic_Stack (last edited 2017-06-05 00:39:25 by twotwo)