Failed to publish events caused by: read tcp filebeat:33330->logstash:5044: read: connection reset by peer

This looks similar to [Solved] Filebeat -> Logstash : connection reset by peer. Have you tried the solution mentioned there?