0

I am trying to use Logstash-output-gelf plugin with TCP connection to graylog2. I use logstash version 5.4.2, Graylog 2.2

I have used the below output settings

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
}

According to the code change found on Github, You can see that the code expects a paramert @protocol, however when I pass protoco => "TCP" in the output, I get an error in the config file.

Can someone please explain to me what I am doing wrong here?

Thanks

mev9669
  • 104
  • 1
  • 8
  • Did you have any luck with this? I'm also interested in sending gelf output through TCP. – Michal Jul 05 '17 at 13:28
  • No not yet. I am using UDP for now.. Busy with some other work at the moment. So will start looking into it again. The Github article says, that there is support for TCP, but there is no example anywhere on how to do it. – mev9669 Jul 06 '17 at 14:54

2 Answers2

2

I've figured it out. I'm not sure which version of logstash-output-gelf plugins comes with your version of logstash but gelf TCP output was introduced in 3.0.0

I've installed the newest version (currently 3.1.3) manually:

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

And it worked flawlessly.

Michal
  • 6,411
  • 6
  • 32
  • 45
0

I've only been able to make it work with a graylog GELF UDP input

vietnem
  • 317
  • 4
  • 10