首页 > 其他分享 >fluentd的input插件,http和forward有什么区别?

fluentd的input插件,http和forward有什么区别?

时间:2022-11-17 14:36:37浏览次数:47  
标签:fluentd 插件 http tcp forward 接收

http

 

http插件提供一个http端点来接收http消息。

 

forward

 

forward提供一个tcp端点来接收tcp包。

 

比如:

 

#  从24224端口接收tcp 事件
#  用于日志转发,比如rsyslog
<source>
  @type forward
  port 24224
</source>

# 接收http请求
# http://<ip>:9880/myapp.access?json={"event":"data"}
<source>
  @type http
  port 9880
</source>

 

标签:fluentd,插件,http,tcp,forward,接收
From: https://www.cnblogs.com/chuanzhang053/p/16899352.html

相关文章