美文网首页
ELK经典架构之Filebeat

ELK经典架构之Filebeat

作者: im青禾 | 来源:发表于2019-05-17 01:12 被阅读0次

    版本选择

    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。

    相关文章

      网友评论

          本文标题:ELK经典架构之Filebeat

          本文链接:https://www.haomeiwen.com/subject/dcemaqtx.html