I’m trying to setup an haproxy which balance to a graylog stream, the frontend in haproxy will be the url but the thing is that in the backend I need to set the graylog stream port (12510) but this port is marked as non open in haproxy…
Do you have any idea how can I set it up?, or if I have to use the api port of graylog and indicate the stream there…
If HAProxy is acting as your load balancer, then you’ll have to write corresponding rules for it to load balance traffic to your inputs. Let’s take the example in Web interface — Graylog 4.0.0 documentation.
If you’re going to load balance to an input port, you have to add those ports both in your frontend and in your backend directives. Does this make sense?
I found that the issue can come from the protocol UDP that the streams use, I realize that using the command that I say, we use UDP, instead, if we use it TCP it doesn’t works…
Is there any possibility to expose the streams via TCP too? or send the logs via HTTP with tcp?
So loadbalancing UDP via Haproxy is a documented limitation. What’s the current input that you’re using? Many of the inputs in Graylog are TCP–you should be able to just change the input to a TCP one.