3.4 Beats/Sidecar
3.4 Beats/Sidecar
适用场景
当需要采集多台服务器日志并统一管理配置时,推荐使用 Graylog Sidecar + Beats。
Sidecar 的作用
-
统一下发采集配置
-
管理 Filebeat/Winlogbeat 等采集器
-
支持多平台(Linux/Windows)
基本流程
-
在 Graylog UI 创建 Sidecar 配置
-
安装 Sidecar 客户端
-
注册并分配配置
-
采集并发送到 Graylog Input
典型配置示例(Filebeat)
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/nginx/access.log
output.logstash:
hosts: ["graylog.example.com:5044"]
小结
Sidecar 适合大规模日志采集。下一章介绍 Extractors。