- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CentOS6.5安装elasticsearch+logstash+kibana
部署中心节点如果有防火墙需要放开这些端口:
port 80 (for the web interface)
port 5544 (to receive remote syslog messages)
port 9200 (so the web interface can access elasticsearch)安装 java环境和Apache服务
yum install -y java-1.7.0-openjdk httpd 安装ES环境 elasticsearch (JVM?Java 8 update 20 or later, or?Java 7 update 55 or later)
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.noarch.rpm yum install elasticsearch-1.6.0.noarch.rpm -y
?
安装logstash环境
wget https://download.elastic.co/logstash/logstash/packages/centos/logstash-1.5.1-1.noarch.rpm yum install logstash-1.5.1-1.noarch.rpm -y
?
安装kibana环境
wget /kibana/kibana/kibana-3.1.2.zip unzip kibana-3.1.2.zip mv kibana-3.1.2 /var/www/html/kibana
?
安装elasticsearch插件
cd /usr/share/elasticsearch/ ./bin/plugin -install mobz/elasticsearch-head ./bin/plugin -install lukas-vlcek/bigdesk/2.5.0
修改elasticsearch配置文件
vim /etc/elasticsearch/elasticsearch.yml
: elasticsearch 去掉前面”#”号
http.cors.enabled: true
http.cors.allow-origin: “01”
启动elasticsearch
/etc/rc.d/init.d/elasticsearch start
测试elasticsearch[root@localhost ~]# curl :9200
{
status : 200,
name : Agamotto,
cluster_name : elasticsearch,
version : {
number : 1.4.1,
build_hash : 89d3241d670db65f994242c8e8383b169779e2d4,
build_timestamp : 2015-11-26T15:49:29Z,
build_snapshot : false,
lucene_version : 4.10.2
},
tagline : You Know, for Search
}
[root@localhost ~]#
配置logstash,如下是Logstash的配置文件[root@localhost conf.d]# vim /etc/logstash/conf.d/logstasg_access.conf
input {
file {
type = apache
path = [/etc/httpd/logs/*_log,/var/log/nginx/*.log]
}
file {
type = syslog
path = [ /var/log/messages, /var/log/syslog ]
}
file {
type = nova
path = [ /var/log/nova/*.log ]
}
file {
type = cinder
path = [ /var/log/cinder/*.log ]
}
file {
type = neutron
path = [ /var/log/neutron/*.log ]
}
file {
type = ceilometer
path = [ /var/log/ceilometer/*.log ]
}
}
filter {
if [type]
文档评论(0)