Closed talevy closed 6 years ago
Is TCP option going to be supported anytime soon?
+1, this blocks us with propagation of Icinga2 perf. data to Logstash via GELF protocol. Icinga2 GELF plugin supports tcp only so I am wondering if TCP support is expected to be implemented soon.
Will this be supported anytime soon? UDP isn't really reliable if I want to collect metrics via gelf input
@jordansissel not sure if I should @ you here but who would be the best person to talk to? or probably this is of lower priority and then we can fix it and request a merge?
We've added TCP support recently. We will do some code cleanup soon and then make a PR. Until then here is a link to updated plugin code with quick 'howto' attached as comment: https://gist.github.com/daniilyar/758857675856ee2fdbef . Tested with Logstash 1.5.0 + Icinga 2.3.8
Excellent @daniilyar !
@daniilyar Ping. Care to submit a PR? People are already using your code... so this would make sense, I guess.
Do I need to install icinga for this code to work? Isn't gelf plugin packaged with logstash 2.2 already supporting TCP? If so, what configuration to make it work?
would be great to see tcp support coming to gelf plugin soon.
I have deleted all of the "+1" comments. At the time of deletion, there were 12 +1
comments.
Hey guys! Based on @daniilyar files, i adapted his file to last logstash version (5.4). It's working but it's a porting from an old version of the plugin, so lot of things changed and maybe it isn't optimized.. Also I did not test the udp part of the script, because i needed only tcp (i need nxlog tcp gelf to connect to logstash). You can download the file here: logstash-input-gelf-master.zip. Maybe it's a good start to add this in the current logstash-input-gelf plugin! Hope this helps someone! 😄
Any update on this?
@patricklucas this is my working updated version based on the last offical release: logstash-input-gelf-master.zip. It's working well!
The docker gelf loging driver now supports tcp output. Logstash needs to be able to receive that. https://docs.docker.com/engine/admin/logging/gelf/#gelf-options
Hi does this work for somone? i try to work with gelf tcp input but get this in logs: [[main]<gelf] WARN logstash.inputs.gelf - Starting gelf listener (tcp) and no logs are processing when sent to TCP. im working in a logstash docker and installed the custom gelf-input.
implemented in https://github.com/logstash-plugins/logstash-input-gelf/pull/59 and shipped already in version 3.1.0 to rubygems.org
Graylog 0.10 starts supporting TCP transport for gelf. Since this enables safer transport than UDP, I suggest extending the gelf input/output with a TCP option.
migrated from: https://logstash.jira.com/browse/LOGSTASH-780