# Filebeat v7.3.2 - Failed to publish events caused by: EOF

**URL:** <https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 20, 2019, 3:40am UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335 "2019-09-20T03:40:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![profiler](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@profiler](https://discuss.elastic.co/u/profiler)\
**Post date:** [September 20, 2019, 3:40am UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/1 "2019-09-20T03:40:10Z")

</div>

Getting these about 20-30 minutes after starting filebeat and ongoing from then on:

Sep 20 15:42:39 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: WARN beater/filebeat.go:368 Filebeat is unable to load the Ingest Node pipeline...warning.  
Sep 20 16:00:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: EOF  
Sep 20 16:00:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
Sep 20 16:00:12 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR pipeline/output.go:121 Failed to publish events: client is not connected  
Sep 20 16:20:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: EOF  
Sep 20 16:20:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
Sep 20 16:20:11 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR pipeline/output.go:121 Failed to publish events: client is not connected  
Sep 20 16:50:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: EOF  
Sep 20 16:50:10 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
Sep 20 16:50:12 [silver.smartabase.com](http://silver.smartabase.com) filebeat[7615]: ERROR pipeline/output.go:121 Failed to publish events: client is not connected

Running the latest v7 on RHEL 7.7:  
filebeat version 7.3.2 (amd64), libbeat 7.3.2 [5b046c5a97fe1e312f22d40a1f05365621aad621 built 2019-09-06 13:49:32 +0000 UTC]  
Linux silver 3.10.0-1062.1.1.el7.x86\_64 #1 SMP Tue Aug 13 18:39:59 UTC 2019 x86\_64 x86\_64 x86\_64 GNU/Linux

I've restarted the service a few times over 2 days, and the results are consistent...

Any help would be greatly appreciated... Thanks

---

<div class="post-metadata">

**Author:** ![profiler](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@profiler](https://discuss.elastic.co/u/profiler)\
**Post date:** [September 20, 2019, 6:20am UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/2 "2019-09-20T06:20:24Z")

</div>

With debugging enabled:

DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [registrar] registrar/registrar.go:356 Processing 1 events  
DEBUG [registrar] registrar/registrar.go:326 Registrar state updates processed. Count: 1  
DEBUG [registrar] registrar/registrar.go:411 Write registry file: /var/lib/filebeat/filebeat/data.json (4)  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [transport] transport/client.go:218 handle error: EOF  
DEBUG [transport] transport/client.go:131 closing  
ERROR logstash/async.go:256 Failed to publish events caused by: EOF  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [logstash] logstash/async.go:116 close connection  
DEBUG [logstash] logstash/async.go:116 close connection  
ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
ERROR pipeline/output.go:121 Failed to publish events: client is not connected  
INFO pipeline/output.go:95 Connecting to backoff(async(tcp://listener-eu.logz.io:5015))  
DEBUG [logstash] logstash/async.go:111 connect  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
INFO pipeline/output.go:105 Connection to backoff(async(tcp://listener-eu.logz.io:5015)) established  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [10: 0, 4]  
DEBUG [publisher] memqueue/eventloop.go:535 broker ACK events: count=1, start-seq=6, end-seq=6

DEBUG [publisher] memqueue/eventloop.go:535 broker ACK events: count=3, start-seq=111, end-seq=113

DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:4  
DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack  
DEBUG [acker] beater/acker.go:64 stateful ack {"count": 4}  
DEBUG [registrar] registrar/registrar.go:356 Processing 4 events  
DEBUG [registrar] registrar/registrar.go:326 Registrar state updates processed. Count: 4  
DEBUG [registrar] registrar/registrar.go:411 Write registry file: /var/lib/filebeat/filebeat/data.json (4)  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.

---

<div class="post-metadata">

**Author:** ![profiler](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@profiler](https://discuss.elastic.co/u/profiler)\
**Post date:** [September 20, 2019, 6:58am UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/3 "2019-09-20T06:58:31Z")

</div>

One more example:

DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [registrar] registrar/registrar.go:356 Processing 1 events  
DEBUG [registrar] registrar/registrar.go:326 Registrar state updates processed. Count: 1  
DEBUG [registrar] registrar/registrar.go:411 Write registry file: /var/lib/filebeat/filebeat/data.json (4)  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [transport] transport/client.go:218 handle error: EOF  
DEBUG [transport] transport/client.go:131 closing  
ERROR logstash/async.go:256 Failed to publish events caused by: EOF  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [logstash] logstash/async.go:116 close connection  
DEBUG [logstash] logstash/async.go:116 close connection  
ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
ERROR pipeline/output.go:121 Failed to publish events: client is not connected  
INFO pipeline/output.go:95 Connecting to backoff(async(tcp://listener-eu.logz.io:5015))  
DEBUG [logstash] logstash/async.go:111 connect  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.  
INFO pipeline/output.go:105 Connection to backoff(async(tcp://listener-eu.logz.io:5015)) established  
DEBUG [logstash] logstash/async.go:159 4 events out of 4 events sent to logstash host [listener-eu.logz.io:5015](http://listener-eu.logz.io:5015). Continue sending  
DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [20: 0, 4]  
DEBUG [publisher] memqueue/eventloop.go:535 broker ACK events: count=3, start-seq=164, end-seq=166

DEBUG [publisher] memqueue/eventloop.go:535 broker ACK events: count=1, start-seq=14, end-seq=14

DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:4  
DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack  
DEBUG [acker] beater/acker.go:64 stateful ack {"count": 4}  
DEBUG [registrar] registrar/registrar.go:356 Processing 4 events  
DEBUG [registrar] registrar/registrar.go:326 Registrar state updates processed. Count: 4  
DEBUG [registrar] registrar/registrar.go:411 Write registry file: /var/lib/filebeat/filebeat/data.json (4)  
DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 4 states written.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/cron; Backoff now.  
DEBUG [harvester] log/log.go:102 End of file reached: /var/log/messages; Backoff now.

---

<div class="post-metadata">

**Author:** ![kumarabhi](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kumarabhi](https://discuss.elastic.co/u/kumarabhi)\
**Post date:** [September 23, 2019, 5:28pm UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/4 "2019-09-23T17:28:25Z")

</div>

> [@profiler](#):
>
> tcp://listener-eu.logz.io:5015

It seems to be issue with connection to Logstash.

Please provide the config files for both Filebeat and Logstash

---

<div class="post-metadata">

**Author:** ![profiler](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@profiler](https://discuss.elastic.co/u/profiler)\
**Post date:** [September 23, 2019, 11:35pm UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/5 "2019-09-23T23:35:28Z")

</div>

Thank you.  
Logstash is managed by [logz.io](http://logz.io), an external provider.  
And the logs are arriving fine at the destination, so it's not a connection issue.  
The errors however persist, despite the connection working fine.  
Also, a "sister" VM, set up at the same time mechanically via Ansible, with just a few different packages installed given its different usage case, does NOT exhibit this behaviour, which is quite puzzling... filebeat.yml is identical on both VMs...

---

<div class="post-metadata">

**Author:** ![kumarabhi](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kumarabhi](https://discuss.elastic.co/u/kumarabhi)\
**Post date:** [September 25, 2019, 8:24pm UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/6 "2019-09-25T20:24:16Z")

</div>

Can you also check the metrics being written by FIlebeat periodically

```
If enabled, Filebeat periodically logs its internal metrics that have changed
 in the last period. For each metric that changed, the delta from the value at
the beginning of the period is logged. Also, the total values for
 all non-zero internal metrics are logged on shutdown. The default is true.

```

logging.metrics.enabled: true

# The period after which to log the internal metrics. The default is 30s.

logging.metrics.period: 30s

---

<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:** [October 23, 2019, 8:24pm UTC](https://discuss.elastic.co/t/filebeat-v7-3-2-failed-to-publish-events-caused-by-eof/200335/7 "2019-10-23T20:24:27Z")

</div>

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