# Sending logs to ES server with Filebeat connection issues

**URL:** <https://discuss.elastic.co/t/sending-logs-to-es-server-with-filebeat-connection-issues/78315>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 13, 2017, 8:58am UTC](https://discuss.elastic.co/t/sending-logs-to-es-server-with-filebeat-connection-issues/78315 "2017-03-13T08:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezequielo](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@ezequielo](https://discuss.elastic.co/u/ezequielo)\
**Post date:** [March 13, 2017, 8:58am UTC](https://discuss.elastic.co/t/sending-logs-to-es-server-with-filebeat-connection-issues/78315/1 "2017-03-13T08:58:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ezequielo](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@ezequielo](https://discuss.elastic.co/u/ezequielo)\
**Post date:** [March 13, 2017, 12:49pm UTC](https://discuss.elastic.co/t/sending-logs-to-es-server-with-filebeat-connection-issues/78315/2 "2017-03-13T12:49:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 10, 2017, 12:49pm UTC](https://discuss.elastic.co/t/sending-logs-to-es-server-with-filebeat-connection-issues/78315/3 "2017-04-10T12:49:26Z")

</div>

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