metricbeat不会将数据发送到Graylog Sidecar

发布于 2025-01-30 06:58:33 字数 1329 浏览 4 评论 0原文

我试图将公制配置为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空城缀染半城烟沙 2025-02-06 06:58:33

您需要配置输出。它应该指向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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文