# Filebeat doesn't send logs to logstash in client server architecture

**URL:** <https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 20, 2016, 2:54pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932 "2016-03-20T14:54:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 2:54pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/1 "2016-03-20T14:54:41Z")

</div>

Hi all,

I just set up filebeat following the documentation. But I can't have logs of my cluster in logstash. I use a client-server architecture (i.e a client with Filebeat configured and installed and a server with logstash and elasticsearch) The client and the server are not in the same subnet so I used domain name to reach logstash in the Server instance.

Here is my /etc/filebeat/filebeat.yml config file:

```
`filebeat:
  prospectors:
    -
      paths:
        - "/var/log/*.log"

    input_type: log

output:
  logstash:
    hosts: ["filebeatdomainname.com:5044"]
    index: indexname

shipper:

logging:
  files:
  rotateeverybytes: 10485760 # = 10MB`

```

And on logstash side, I just configured a logstash.conf file under /etc/logstash/conf.d/logstash.conf:

```
`input {
 beats {
   port => 5044
}
}

output {
elasticsearch {
hosts => "172.31.62.244:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}`

```

Please, Were I am wrong?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 20, 2016, 4:05pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/2 "2016-03-20T16:05:56Z")

</div>

Any log output from filebeat/logstash?

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 4:11pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/3 "2016-03-20T16:11:51Z")

</div>

Yes, Any log.

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 4:16pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/4 "2016-03-20T16:16:41Z")

</div>

I means no logs in logstash and no index in elasticsearch

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 20, 2016, 4:33pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/5 "2016-03-20T16:33:34Z")

</div>

can you post filebeat log output?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 20, 2016, 4:36pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/6 "2016-03-20T16:36:21Z")

</div>

Check out filebeat troubleshooting/faq: [https://www.elastic.co/guide/en/beats/filebeat/current/faq.html#filebeat-not-collecting-lines](https://www.elastic.co/guide/en/beats/filebeat/current/faq.html#filebeat-not-collecting-lines)

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 4:40pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/7 "2016-03-20T16:40:32Z")

</div>

I don't know where are filebeat log output. I expected it to be on /var/log/filebeat but I don't have it here. Please, do you know where I can see them?

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 5:31pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/8 "2016-03-20T17:31:08Z")

</div>

Hey @steffens, Here is what I have in the logs

`2016/03/20 17:26:23.768081 output.go:87: DBG output worker: publish 177 events 2016/03/20 17:26:23.768272 client.go:136: DBG Try to publish 177 events to logstash with window size 10 2016/03/20 17:26:23.890194 client.go:95: DBG close connection 2016/03/20 17:26:23.890362 client.go:114: DBG 0 events out of 177 events sent to logstash. Continue sending ... 2016/03/20 17:26:23.890398 single.go:76: INFO Error publishing events (retrying): EOF 2016/03/20 17:26:23.890423 single.go:152: INFO send fail 2016/03/20 17:26:23.890447 single.go:159: INFO backoff retry: 1s 2016/03/20 17:26:24.241759 reader.go:138: DBG End of file reached: /var/log/auth.log; Backoff now. 2016/03/20 17:26:24.241951 reader.go:138: DBG End of file reached: /var/log/cloud-init-output.log; Backoff now. 2016/03/20 17:26:24.242127 reader.go:138: DBG End of file reached: /var/log/boot.log; Backoff now. 2016/03/20 17:26:24.242734 reader.go:138: DBG End of file reached: /var/log/dpkg.log; Backoff now. 2016/03/20 17:26:24.242906 reader.go:138: DBG End of file reached: /var/log/cloud-init.log; Backoff now. 2016/03/20 17:26:24.243992 reader.go:138: DBG End of file reached: /var/log/kern.log; Backoff now. 2016/03/20 17:26:24.890672 client.go:90: DBG connect 2016/03/20 17:26:25.012786 client.go:136: DBG Try to publish 177 events to logstash with window size 5 2016/03/20 17:26:25.136129 client.go:95: DBG close connection 2016/03/20 17:26:25.136279 client.go:114: DBG 0 events out of 177 events sent to logstash. Continue sending ... 2016/03/20 17:26:25.136319 single.go:76: INFO Error publishing events (retrying): EOF 2016/03/20 17:26:25.136345 single.go:152: INFO send fail`

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 20, 2016, 6:18pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/9 "2016-03-20T18:18:07Z")

</div>

Issue fixed. Thank you for your tip. After reading deeply the logs I saw that Filebeat was not able to communicate directly with logstash. So in logstash logs I saw a warning. I updated the beats plugin and everything works fine. Thanks again!!!!

---

<div class="post-metadata">

**Author:** ![mitchell.peters](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mitchell.peters](https://discuss.elastic.co/u/mitchell.peters)\
**Post date:** [September 16, 2016, 6:46pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/10 "2016-09-16T18:46:21Z")

</div>

yo dawg. same problem, that link is rotten now though. what was the secret sauce?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 16, 2016, 6:49pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/11 "2016-09-16T18:49:01Z")

</div>

Here's the updated link: [https://www.elastic.co/guide/en/beats/filebeat/current/faq.html](https://www.elastic.co/guide/en/beats/filebeat/current/faq.html)

---

<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:** [July 5, 2017, 9:50pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-send-logs-to-logstash-in-client-server-architecture/44932/12 "2017-07-05T21:50:38Z")

</div>


