Binding local port for Logstash http output plugin


Hi all,

I'm using the logstash-http-output plugin to send logs (converted to a SOAP message during filtering) to an endpoint on another server.

I'm having problems trying to find a way to bind a local port for the http output plugin. This is for the firewall purposes - currently it sends out on a random port (often in the tcp/50000-60000 range). For the connection to be accepted, I to specifically define this connection between the two servers and two distinct ports for the traffic to be allowed both ways. Is there any way I can do this?

Plugin code:

http {
url => "URL-to-soap-endpoint"
http_method => "post"
content_type => "text/xml;charset=UTF-8"
format => "message"
message => '<soap:Envelope SOAP MESSAGE </soap:Envelope>'



I would expect your firewall to allow a configuration that specified a random ephemeral port on one side to connect to a specific port on the other side.

It's really a firewall question than a logstash question. You cannot constrain the port number on the source side.


Thanks for the reply Badger. Understood.

(system) closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.