码迷,mamicode.com
首页 > 其他好文 > 详细

filebeat 简介安装

时间:2018-11-17 13:12:38      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:artifact   call   war   bsp   mat   target   central   sea   mon   

Filebeat is a lightweight shipper for forwarding and centralizing log data. Installed as an agent on your servers, Filebeat monitors the log files or locations that you specify, collects log events, and forwards them to either to Elasticsearch or Logstash for indexing.

Here’s how Filebeat works: When you start Filebeat, it starts one or more inputs that look in the locations you’ve specified for log data. For each log that Filebeat locates, Filebeat starts a harvester. Each harvester reads a single log for new content and sends the new log data to libbeat, which aggregates the events and sends the aggregated data to the output that you’ve configured for Filebeat.

技术分享图片

 

To add the Beats repository for YUM:

  1. Download and install the public signing key:

    sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
  2. Create a file with a .repo extension (for example, elastic.repo) in your /etc/yum.repos.d/directory and add the following lines:

    [elastic-6.x]
    name=Elastic repository for 6.x packages
    baseurl=https://artifacts.elastic.co/packages/6.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=1
    autorefresh=1
    type=rpm-md

    Your repository is ready to use. For example, you can install Filebeat by running:

    sudo yum install filebeat
  3. To configure the Beat to start automatically during boot, run:

    sudo chkconfig --add filebeat

filebeat 简介安装

标签:artifact   call   war   bsp   mat   target   central   sea   mon   

原文地址:https://www.cnblogs.com/royfans/p/9973294.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!