# Syslog.input and logstash output

**URL:** <https://discuss.elastic.co/t/syslog-input-and-logstash-output/216824>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 28, 2020, 11:15am UTC](https://discuss.elastic.co/t/syslog-input-and-logstash-output/216824 "2020-01-28T11:15:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaZet](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@HaZet](https://discuss.elastic.co/u/HaZet)\
**Post date:** [January 28, 2020, 11:15am UTC](https://discuss.elastic.co/t/syslog-input-and-logstash-output/216824/1 "2020-01-28T11:15:49Z")

</div>

When I enable the filebeat.inputs.type syslog to receive sysslog messages over a socket and send it to logstash I get the following error in the filebeat.log:

> 2020-01-28T11:03:29.279+0100 ERROR logstash/async.go:256 Failed to publish events caused by: read tcp XXXXXXXXX:57892-\>XXXXXXX:5044: i/o timeout  
> 2020-01-28T11:03:29.280+0100 ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected  
> 2020-01-28T11:03:30.594+0100 ERROR pipeline/output.go:121 Failed to publish events: client is not connected  
> 2020-01-28T11:03:35.296+0100 ERROR pipeline/output.go:100 Failed to connect to failover(backoff(async(tcp://XXXXXXXXX:5044)),backoff(async(tcp://XXXXXXX:5044))): dial tcp XXXXXXX:5044: connect: connection refused

As an result I have the message more than one time in Elasticsearch (not always, only sometimes). Other inputs/plugins are not affected, only when I send an event to the configured Socket.

What I tried already to fix it:

- send output directly to ES: Error is gone, but the Fields don't look like I expect them (funny, using the same ingest as via logstash...) -\> no solution for me
- set bulk\_max\_size in filebeat.yml for logstash output (as recommended here [Filebeat throwing i/o timeout while sending logs to logstash](https://discuss.elastic.co/t/filebeat-throwing-i-o-timeout-while-sending-logs-to-logstash/128397))
- disabled filters and elasticsearch output in logstash (didn't help) and direct the output to a file (I have the message repeatedly in the file, same as in elasticsearch).

Any ideas/hints where to look further?

---

<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:** [February 25, 2020, 11:15am UTC](https://discuss.elastic.co/t/syslog-input-and-logstash-output/216824/2 "2020-02-25T11:15:50Z")

</div>

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