protocol-buffers - fluentd 是否支持 HTTP 输入中的 protobuf 消息?
问题描述
是否可以向 Fluentd 发送 protobuf 消息?
我不是要求 protobuf 解析,只是接收 protobuf 并将其发送到输出。
配置示例:
<source>
# Here I would receive the protobuf message
@type http
port 9880
bind 0.0.0.0
body_size_limit 32m
keepalive_timeout 10s
</source>
<match hello>
# And here I'd send the protobuf message to another endpoint
@type http
endpoint "http://localhost:9999"
open_timeout 2
<buffer>
flush_interval 1s
</buffer>
</match>
使用此配置,fluentd 会回答:
400 Bad Request
'json' or 'msgpack' parameter is required
解决方案
您可以将fluent-plugin-protobuf-http用于根据自定义模式(.proto
文件)编码的单/批输入协议缓冲区的消息。
推荐阅读
- python - 如何将这种特定的数据格式放入数据框中?
- typescript - 事件映射和类型保护
- xamarin.forms - 移动 Blazor 绑定
- r - R - 安装新软件包时如何避免搞砸现有已安装的软件包
- abap - 仅在 CDS 中的数字字段中添加前导零?
- android - 如何获得驾驶员分心优化的许可?
- powerbi - PowerBI 筛选器上下文问题
- javascript - Mapbox javascript:在移动的标记处休息(模拟红色交通灯)
- python - 是否可以在选项卡笔记本中创建窗格窗口?(Python TKinter)
- c# - 如何通过 ID 访问 IEnumerable 模型的第 2 项(或 3 或 ...x)