filebeat 简介安装
Posted royfans
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了filebeat 简介安装相关的知识,希望对你有一定的参考价值。
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:
-
Download and install the public signing key:
sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
-
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
-
To configure the Beat to start automatically during boot, run:
sudo chkconfig --add filebeat
以上是关于filebeat 简介安装的主要内容,如果未能解决你的问题,请参考以下文章
2021年大数据ELK(十八):Beats 简单介绍和FileBeat工作原理