# Connectivity issue in Filebeat and kafka server

**URL:** <https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 5, 2022, 1:17pm UTC](https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037 "2022-05-05T13:17:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [May 5, 2022, 1:17pm UTC](https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037/1 "2022-05-05T13:17:36Z")

</div>

Hi,  
I'm using filebeat to send logs to Kafka topic. The source system is a server with an IP that is not static and it's an on-prem server. The destination server is a AWS Ec2 instance. Currently I'm not able to make connectivity with both these servers.  
Is there a way to create this connectivity in a secure way?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 5, 2022, 1:59pm UTC](https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037/2 "2022-05-05T13:59:48Z")

</div>

What is the issue? You didn't explain the problem.

---

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [May 6, 2022, 5:17am UTC](https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037/3 "2022-05-06T05:17:25Z")

</div>

I'm outputting logs to kafka topic which is running on a AWS ec2 instance, the source server is a on-prem server. Filebeat is able to establish connection but nothing is being written on the kafka topic. I have exposed the kafka server through nginx reverse proxy. Is this not right way to do it?

---

<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:** [June 3, 2022, 7:18am UTC](https://discuss.elastic.co/t/connectivity-issue-in-filebeat-and-kafka-server/304037/4 "2022-06-03T07:18:01Z")

</div>

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