【问题标题】:Has anyone manage to Logstash-output-gelf plugin with TCP connection?有没有人设法通过 TCP 连接使用 Logstash-output-gelf 插件?
【发布时间】: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


【解决方案1】:

我想通了。我不确定您的 logstash 版本附带了哪个版本的 logstash-output-gelf 插件,但在 3.0.0 中引入了 gelf TCP 输出

我已经手动安装了最新版本(目前是 3.1.3):

logstash-plugin install --version 3.1.3 logstash-output-gelf

而且它完美无瑕。

【讨论】:

    【解决方案2】:

    我只能使用 graylog GELF UDP 输入使其工作

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-26
      • 1970-01-01
      相关资源
      最近更新 更多