filebeat安装和配置

本文档详细介绍了如何在Linux环境中安装filebeat 5.4.0和7.1版本,包括使用rpm命令安装、启用服务以及配置filebeat来发送日志到logstash。同时,展示了不同版本filebeat的配置文件内容,并提到了logstash的配置以处理不同类型的数据。最后,解决了一个关于java路径的异常问题。
摘要由CSDN通过智能技术生成

1、安装ilebeat-5.4.0-x86_64.rpm
rpm -ivh filebeat-5.4.0-x86_64.rpm
安装步骤
[root@VM_45_163_centos opt]# rpm -ivh filebeat-5.4.0-x86_64.rpm
warning: filebeat-5.4.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing… ################################# [100%]
Updating / installing…
1:filebeat-5.4.0-1 ################################# [100%]
[root@VM_45_163_centos opt]# cd /etc/filebeat/
[root@VM_45_163_centos filebeat]# systemctl enable filebeat
Created symlink from /etc/systemd/system/multi-user.target.wants/filebeat.service to /usr/lib/systemd/system/filebeat.service.
[root@VM_45_163_centos filebeat]# systemctl enable filebeat
[root@VM_45_163_centos filebeat]# systemctl start filebeat
[root@VM_45_163_centos filebeat]# ps -ef|grep fileb
root 8139 1 0 10:51 ? 00:00:00 /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值