ELK经典架构之Filebeat

版本选择

filebeat-5.6.15-x86_64.rpm

Filebeat安装

Filebeat安装在日志源服务器上。

  1. ElasticStack历史版本下载链接


    根据实际系统环境选择合适的包。
    2.将包上传至服务器临时目录。

    3.安装Filebeat
    rpm -ivh filebeat-5.6.15-x86_64.rpm

    4.配置filebeat.yml

    filebeat.yml详情,如下:
filebeat.prospectors:
- input_type: log
  paths:
    - /usr/mylog/*.log
output.logstash:
# The Logstash hosts
  hosts: "10.10.61.205:5044"
  1. 运行Filebeat
    1. Filebeat前台启动
      ./filebeat -e -c /etc/filebeat/filebeat.yml
    2. Filebeat前台停止
      按组合键ctrl+c即可停止Filebeat运行。
    3. Filebeat后台启动
      nohup ./filebeat -e -c /etc/filebeat/filebeat.yml &
    4. Filebeat进程查询
      ps -ef|grep filebeat
    5. Filebeat后台停止
      kill -9 32547
      32547为上步查询出的pid。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容