我应该使用哪个 Fluentd 插件来侦听应用程序日志:in_tcp 或 in_forward?

Which Fluentd plugin I should use to listen application logs : in_tcp or in_forward?

我有 Flask 应用程序,它正在 localhost:5555 上的标准输出中流式传输一些日志。 我想通过 dockerized Fluentd 收听这些日志,但我有点困惑我应该使用哪个插件:in_tcp 或 in_forward?

这样配置会报错:"Address not available - bind(2) for \"my_ip\" port 5555"

<source>
  @type tcp
  tag "tcp.events"
  format none
  bind my_ip
  port 5555
  log-level debug
</source>

<filter **>
  @type stdout
</filter>

in_forward 的配置示例在配置中始终具有端口 24224,因此它们似乎在听其他流利的,而不是在听应用程序。

能请教一下吗?

接下来的内容:

使用 fluent-logger-language 将日志导出到 Fluentd 服务器。 以下是所有链接: https://github.com/fluent

Fluentd 服务器配置

<source>
  @type forward
  port 24224
  host <if remote>
</source>

<filter **>
  @type stdout
</filter>