Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding UDP support #608

Open
limanzhang-ess opened this issue May 15, 2024 · 5 comments
Open

Adding UDP support #608

limanzhang-ess opened this issue May 15, 2024 · 5 comments

Comments

@limanzhang-ess
Copy link

limanzhang-ess commented May 15, 2024

Use Case

When I am trying to do loading balancing for graylog, I found that there was no support for UDP in the module.

Describe the Solution You Would Like

For example, receiving UDP traffic on port 5140 and forward it to backend server1:5140 and server2:5140.

listen graylog_udp
 mode udp
 bind :5140
 balance roundrobin
 server server1 ip1:5140 check
 server server2 ip2:5140 check
@limanzhang-ess
Copy link
Author

limanzhang-ess commented May 22, 2024

Or function like

log-forward syslog
  # Accepts incoming TCP messages
  bind 0.0.0.0:5140
  # Accepts incoming UDP messages
  dgram-bind 0.0.0.0:5140
  # Sends outgoing messages via UDP
  log logserver:5140 local0

@alexjordan6
Copy link

HAProxy does not support UDP in general. You need to use something like ipvs or keepalived to do udp load balancing

@limanzhang-ess
Copy link
Author

But Haproxy supports UDP for syslog in log-forward section.

@alexjordan6
Copy link

Oh I see, that's a good point. Have you tried using the custom_fragment parameter?

Optional[String] $custom_fragment = undef,

@limanzhang-ess
Copy link
Author

No, but I will have a look. Thanks for the advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants