42313 发表于 2016-2-24 08:48:52

ELK stack 部署

ELK 是 elasticsearchlogstashkibana 的组合;
这里简单的说一下如何在centos6.x系统下安装,后续写如何使用这些软件;
这里是根据官网推荐使用yum的方法安装的;


1. elasticsearch

1
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearc




   cat /etc/yum.repos.d/elsticsearch.repo

1
2
3
4
5
6

name=Elasticsearch repository for 2.x packages
baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1





1
2
yum install elasticsearch -y
#访问:http://ip:9200




安装各种插件

1
2
3
4
5
6
7
8
9
10
11
#安装 head
/usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
#访问:

#安装 kopf
/usr/share/elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf
#访问:

#安装 bigdesk
/usr/share/elasticsearch/bin/plugin install lukas-vlcek/bigdesk
#访问:http://ip:9200/_plugin/bigdesk




2. logstash

1
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearc




cat /etc/yum.repos.d/logstash.repo

1
2
3
4
5
6

name=Logstash repository for 2.2.x packages
baseurl=http://packages.elastic.co/logstash/2.2/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1





1
yum install logstash -y





3. kibana

1
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearc




cat /etc/yum.repos.d/kibana.repo

1
2
3
4
5
6

name=Kibana repository for 4.4.x packages
baseurl=http://packages.elastic.co/kibana/4.4/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1





1
2
3
yum install kibana -y
#访问
http://ip:5601






页: [1]
查看完整版本: ELK stack 部署