【发布时间】:2017-06-22 14:21:47
【问题描述】:
我正在尝试将 Logstash-output-gelf 插件与与 graylog2 的 TCP 连接一起使用。 我使用 logstash 版本 5.4.2,Graylog 2.2
我使用了以下输出设置
output {
gelf{
host =>"127.0.0.1" // i have changed the ip address. The actual IP connects to a server on the network
port => 15205
}
根据Github 上的代码更改,您可以看到代码需要@protocol 参数,但是当我在输出中传递protoco => "TCP" 时,配置文件中出现错误。
有人可以向我解释一下我在这里做错了什么吗?
谢谢
【问题讨论】:
-
你有什么运气吗?我也有兴趣通过 TCP 发送 gelf 输出。
-
还没有。我现在正在使用 UDP.. 目前正忙于其他工作。所以会重新开始调查。 Github 文章说,有对 TCP 的支持,但没有任何地方说明如何做到这一点。
标签: tcp logstash elastic-stack graylog gelf