我是靠谱客的博主 醉熏发卡,这篇文章主要介绍linux下安装filebeat1、下载安装程序2、安装filebeat3、安装目录说明 4、修改配置文件5、启动 filebeat,现在分享给大家,希望可以做个参考。

1、下载安装程序

下载地址:Download Filebeat • Lightweight Log Analysis | Elastic

2、安装filebeat

rpm -ivh filebeat-7.9.3-x86_64.rpm

3、安装目录说明

目录

说明

/etc/filebeat/filebeat.reference.yml 

配置文件参考

/etc/filebeat/filebeat.yml

主配置文件

/usr/bin/filebeat

启动文件

 4、修改配置文件

cat /etc/filebeat/filebeat.yml

filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /var/log/secure
output.elasticsearch:
  hosts:
    - "192.168.1.10:9200"
    - "192.168.1.11:9200"
    - "192.168.1.12:9200"

5、启动 filebeat

#设置开机自启
systemctl enable filebeat.service

#启动filebeat
systemctl start filebeat.service

 检测启动是否正常:

ps -ef |grep filebeat

root 78082 1 0 08:57 ? 00:00:00 /usr/share/filebeat/bin/filebeat 
--environment systemd -c /etc/filebeat/filebeat.yml 
--path.home /usr/share/filebeat 
--path.config /etc/filebeat 
--path.data /var/lib/filebeat 
--path.logs /var/log/filebeat

最后

以上就是醉熏发卡最近收集整理的关于linux下安装filebeat1、下载安装程序2、安装filebeat3、安装目录说明 4、修改配置文件5、启动 filebeat的全部内容,更多相关linux下安装filebeat1、下载安装程序2、安装filebeat3、安装目录说明 4、修改配置文件5、启动内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(133)

评论列表共有 0 条评论

立即
投稿
返回
顶部