ELK套件之 X-pack 工具的安装
2017-09-23 23:28
387 查看
服务器信息:
CentOS6.7 x86_64 IP地址: 10.0.20.25
ELK版本:
elasticsearch-5.6.0.rpm
kibana-5.6.0-x86_64.rpm
logstash-5.6.0.rpm
x-pack版本:
x-pack-5.6.0.zip 先提前下载好zip安装包丢到/root目录下,这样离线安装起来比较快。
ELK单节点的搭建步骤省略,可以参考http://lee90.blog.51cto.com/10414478/1968035。下面直接开始x-pack的安装。
bin/elasticsearch-plugin install file:///root/x-pack-5.6.0.zip
/etc/init.d/elasticsearch restart
bin/kibana-plugin install file:///root/x-pack-5.6.1.zip
/etc/init.d/kibana restart
bin/logstash-plugin install file:///root/x-pack-5.6.1.zip
/etc/init.d/logstas hrestart
我们开启了xpack后,默认情况下访问集群需要密码了。
这会导致packetbeat等上送数据失败,提示401报错。因此需要配置下。
以packetbeat为例,其他的我暂时用不到没有去试验。
vim /etc/packetbeat/packetbeat.yml 加上ES的用户名和密码
packetbeat.interfaces.device:anypacketbeat.protocols.mysql: ports: [3306] send_request: true transaction_timeout: 30s output.elasticsearch: hosts: ["10.0.20.25:9200"] username:"elastic" password:"changeme" work: 1 bulk_max_size: 50 timeout: 90 flush_interval: 1s template.enabled: true template.name:"packetbeat.template" template.overwrite: true index: test-mysql-%{+yyyy.MM.dd}
然后重启下packetbeat 即可正常的抓取数据存到ES集群里面。
(官网文档地址:https://www.elastic.co/guide/en/beats/packetbeat/current/elasticsearch-output.html)
更详细的用法可以参考文章: http://blog.csdn.net/pistolove/article/details/53838138
CentOS6.7 x86_64 IP地址: 10.0.20.25
ELK版本:
elasticsearch-5.6.0.rpm
kibana-5.6.0-x86_64.rpm
logstash-5.6.0.rpm
x-pack版本:
x-pack-5.6.0.zip 先提前下载好zip安装包丢到/root目录下,这样离线安装起来比较快。
ELK单节点的搭建步骤省略,可以参考http://lee90.blog.51cto.com/10414478/1968035。下面直接开始x-pack的安装。
elasticsearch安装x-pack
cd /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///root/x-pack-5.6.0.zip
/etc/init.d/elasticsearch restart
kibana安装x-pack
cd /usr/share/kibana/bin/kibana-plugin install file:///root/x-pack-5.6.1.zip
/etc/init.d/kibana restart
logstash安装x-pack
cd /usr/share/logstash/bin/logstash-plugin install file:///root/x-pack-5.6.1.zip
/etc/init.d/logstas hrestart
x-pack的配置
在浏览器打开 http://10.0.20.25:5601 自动跳转到登录页面 (用户名elastic 密码 changeme)我们开启了xpack后,默认情况下访问集群需要密码了。
这会导致packetbeat等上送数据失败,提示401报错。因此需要配置下。
以packetbeat为例,其他的我暂时用不到没有去试验。
vim /etc/packetbeat/packetbeat.yml 加上ES的用户名和密码
packetbeat.interfaces.device:anypacketbeat.protocols.mysql: ports: [3306] send_request: true transaction_timeout: 30s output.elasticsearch: hosts: ["10.0.20.25:9200"] username:"elastic" password:"changeme" work: 1 bulk_max_size: 50 timeout: 90 flush_interval: 1s template.enabled: true template.name:"packetbeat.template" template.overwrite: true index: test-mysql-%{+yyyy.MM.dd}
然后重启下packetbeat 即可正常的抓取数据存到ES集群里面。
(官网文档地址:https://www.elastic.co/guide/en/beats/packetbeat/current/elasticsearch-output.html)
更详细的用法可以参考文章: http://blog.csdn.net/pistolove/article/details/53838138
相关文章推荐
- Eclipse安装Spring工具套件
- webpack构建工具安装
- 前端模块化之模块化工具gulp和webpack的安装。
- ELK-5.4.1和x-pack权限控制 安装指导
- 如何安装arm-linux与arm-elf交叉工具套件
- webpack前端构建工具学习总结(一)之webpack安装、创建项目
- postgresql监控工具pgstatspack的安装及使用
- elk安装(这个是初级的可以把这个套件安上)
- eclipse安装Spring工具套件(STS)
- Homebrew新一代OS X套件管理工具 高速安装Git
- elk插件x-pack安装以及破解
- ELK-5.4.1和x-pack权限控制 安装指导
- 一些工具的安装(git,clapack)
- ELK日志套件安装与使用
- ELK日志套件安装与使用
- Homebrew新一代OS X套件管理工具 快速安装Git
- 前端自动打包工具webpack的安装和使用
- IzPack打包工具 源码编译、安装、使用
- php集成工具之------xampp安装及问题解决