你问的应该是 “在 CentOS 上运行的 Filebeat 支持收集哪些系统/数据源”,还是 “Filebeat 官方支持哪些 CentOS 系统版本”?下面分别说明。
一、Filebeat 在 CentOS 上支持的系统版本(运行环境)
Elastic 官方对 Filebeat(属于 Elastic Stack)的支持情况如下(以常见版本为例):
✅ 支持的 CentOS / RHEL 系列
- CentOS 7(x86_64)
- CentOS 8(x86_64)
- RHEL 7 / 8 / 9
- Oracle Linux 7 / 8
- Amazon Linux 2
✅ 架构支持
- x86_64(主要)
- ARM64(部分新版本支持,如 EL8+)
⚠️ 注意事项
- CentOS 6 已不再官方支持(Elastic 8.x 起基本放弃)
- CentOS Stream 一般也可运行,但属于“社区验证”
- 建议使用 RPM 包 安装(官方提供)
二、Filebeat 支持收集哪些“系统”数据(模块与输入)
如果是问 Filebeat 能采集哪些系统日志/指标,主要包括:
1️⃣ 系统日志(System Module)
/var/log/messages
/var/log/secure
- 系统启动、认证、内核日志
2️⃣ 常见服务模块(CentOS 常用)
- Nginx
- Apache
- Systemd(journal 日志)
- Auditd
- Syslog
- Redis / MySQL / PostgreSQL
3️⃣ 输入方式(Inputs)
log(文件日志)
syslog
journald
container(Docker / Kubernetes)
tcp / udp
4️⃣ 系统指标(需 Metricbeat,非 Filebeat)
⚠️ CPU、内存、磁盘等指标 不是 Filebeat 的职责
应使用 Metricbeat
三、总结一句话
CentOS 7 / 8 上可稳定运行 Filebeat,支持采集系统日志、服务日志及容器日志,但不负责系统指标采集。
如果你愿意,可以告诉我:
- 你用的是 CentOS 几?
- 想采集 系统日志 / 容器 / 业务日志?
我可以给你具体配置示例。