Configure filebeat as listening acceptor, logstash as initiator

Hi all,

Is it possible to configure Filebeat to listen on a port and have Logstash connect to it, rather than the other way round?

In the configuration section of the docs, I can see Filebeat can be configured as an initiator:

 output.logstash:
  hosts: ["127.0.0.1:5044"]

Leaving off the port just uses the default, this suggests that Filebeat must be the initiator and Logstash the acceptor.

I am asking due to some corporate policies, the server where Filebeat is running cannot initiate outbound connectivity to our Logstash server.

@alex_ this is not currently possible, Filebeat can only initiate a remote connection. This behavior is common because beats are usually installed on the edge machine with no port open and the collector (Logstash) cannot connect to them.

1 Like

OK - thanks for the information. I can rearchitect to ensure the logstash server is in a location where it can be accessed by filebeat.

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