# How you connected Filebeat with Logstash in your Kubernetes Cluster using beats input?

**URL:** <https://discuss.elastic.co/t/how-you-connected-filebeat-with-logstash-in-your-kubernetes-cluster-using-beats-input/296847>\
**Category:** Logstash\
**Created:** [February 10, 2022, 1:50pm UTC](https://discuss.elastic.co/t/how-you-connected-filebeat-with-logstash-in-your-kubernetes-cluster-using-beats-input/296847 "2022-02-10T13:50:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [February 10, 2022, 1:50pm UTC](https://discuss.elastic.co/t/how-you-connected-filebeat-with-logstash-in-your-kubernetes-cluster-using-beats-input/296847/1 "2022-02-10T13:50:04Z")

</div>

Hi folks,

when I try to send logs from filebeat via

```auto
      output.logstash:
        hosts: ["logstash-service:5044"]

```

to my logtash pod with:

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

```

without any security settings for now.

I have only errors like: `Invalid version of beats protocol` in my logstash pod. Filebeat logs that connection was reset by peer.

Do you have an Idea why it doesn't work?

I have found some topics here in forums but either they are not answered or the poster end up to recognize that he/she did some misconfiguration.

---

<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:** [March 10, 2022, 1:50pm UTC](https://discuss.elastic.co/t/how-you-connected-filebeat-with-logstash-in-your-kubernetes-cluster-using-beats-input/296847/2 "2022-03-10T13:50:53Z")

</div>

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