可以,CentOS 完全可以运行 Filebeat。
Filebeat 是 Elastic 官方推出的轻量级日志采集器,官方明确支持以下 Linux 发行版(包括 CentOS):
# 以 8.x 为例
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
sudo yum install -y https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.13.0-x86_64.rpm
cat > /etc/yum.repos.d/filebeat.repo <<EOF
[filebeat]
name=Elasticsearch repository for Filebeat
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
EOF
yum install filebeat -y
systemctl enable filebeat
systemctl start filebeat
systemdservice filebeat startfilebeat version
systemctl status filebeat
如果你有 CentOS 版本 + 架构(x86/aarch64) 或 具体使用场景(日志收集到 ES / Kafka / Logstash),我可以给你更精确的配置示例。