【发布时间】:2018-07-12 12:55:29
【问题描述】:
我有 Flask 应用程序,它在localhost:5555 的标准输出中流式传输一些日志。
我想通过 dockerized Fluentd 收听这些日志,但我有点困惑我应该使用哪个插件:in_tcp 还是 in_forward?
这样的配置会导致错误:“地址不可用 - 为 \"my_ip\" 端口 5555 绑定 (2)”
<source>
@type tcp
tag "tcp.events"
format none
bind my_ip
port 5555
log-level debug
</source>
<filter **>
@type stdout
</filter>
in_forward 的配置示例在配置中始终具有端口 24224,因此它们似乎在侦听其他 fluentd,而不是侦听应用程序。
你能指点一下吗?
【问题讨论】:
-
您应该使用 @type forward 并将您的日志发送到运行 fluentd 的服务器