Sending logs to ES server with Filebeat connection issues

Hi, I have a server with ES + Kibana and I want to start shipping logs from different servers to the "monitoring server". I tried to use ES output like this:

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["elastic_server_url/"]
  template.name: "filebeat"
  template.path: "filebeat.template.json"
  template.overwrite: false

But I got this error:

ERR Connecting error publishing events (retrying): Get XXX dial tcp XX: getsockopt: connection refused

Is there something wrong with my configuration?
Should I use Logstash output instead?

Apparently it had nothing to be with Filebeats nor ES it was a problem with the proxy server :slight_smile:

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