metricbeat不会将数据发送到Graylog Sidecar
我试图将公制配置为Graylog Sidecar,并成功。它连接到卫生机,但没有发送任何数据。我如何解决?
这是我的配置文件
# Needed for Graylog
fields_under_root: true
fields.collector_node_id: term
fields.gl2_source_collector: b4af64b2-fd94-4b85-aa59-b92dd911fd39
metricbeat.config.modules:
path: C:\Program Files\Graylog\sidecar\Metricbeat\modules.d\*.yml
# Set to true to enable config reloading
reload.enabled: false
# Period on which files under path should be checked for changes
reload.period: 10s
output.logstash:
# The Logstash hosts
enabled: true
loadBalance: true
hosts: ["IP:PORT"]
metricbeat.modules:
- module: system
metricsets:
- cpu # CPU usage
- memory # Memory usage
- network # Network IO
#- process # Per process metrics
#- process_summary # Process summary
- uptime # System Uptime
- socket_summary # Socket summary
#- core # Per CPU core usage
- diskio # Disk IO
- filesystem # File system usage for each mountpoint
#- fsstat # File system summary metrics
#- raid # Raid
#- socket # Sockets and connection info (linux only)
#- service # systemd service information
enabled: true
period: 10s
processes: [".*"]
它已连接到GrayLog Sidecar ,但不发送数据
I was trying to configure Metricbeat to Graylog sidecar, and it successed. It connects to sidecar but doesn't send any data. How I can fix it?
this is my config file
# Needed for Graylog
fields_under_root: true
fields.collector_node_id: term
fields.gl2_source_collector: b4af64b2-fd94-4b85-aa59-b92dd911fd39
metricbeat.config.modules:
path: C:\Program Files\Graylog\sidecar\Metricbeat\modules.d\*.yml
# Set to true to enable config reloading
reload.enabled: false
# Period on which files under path should be checked for changes
reload.period: 10s
output.logstash:
# The Logstash hosts
enabled: true
loadBalance: true
hosts: ["IP:PORT"]
metricbeat.modules:
- module: system
metricsets:
- cpu # CPU usage
- memory # Memory usage
- network # Network IO
#- process # Per process metrics
#- process_summary # Process summary
- uptime # System Uptime
- socket_summary # Socket summary
#- core # Per CPU core usage
- diskio # Disk IO
- filesystem # File system usage for each mountpoint
#- fsstat # File system summary metrics
#- raid # Raid
#- socket # Sockets and connection info (linux only)
#- service # systemd service information
enabled: true
period: 10s
processes: [".*"]
It is connected to Graylog sidecar, but doesn't send data
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要配置输出。它应该指向GrayLog服务器。 SideCar只是一个配置管理工具。您不会通过它发送日志,而是将它们发送到GrayLog服务器上的Beats输入。
You need to configure the output. It should point to the Graylog server. Sidecar is just a configuration management tool. You don't send the logs through it, you send them to a beats input on the Graylog server.