# External application to connect kafka in internal network

**URL:** https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481
**Category:** Elasticsearch
**Created:** [July 3, 2023, 3:33pm UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481 "2023-07-03T15:33:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shalinicts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalinicts/32/81251_2.png) [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)
#### Post date: [July 3, 2023, 3:33pm UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/1 "2023-07-03T15:33:51Z")

</div>

Hi Team,

How can I expose Kafka to external network so that external source can connect or push data to my Kafka within internal network .

Thanks

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 3, 2023, 3:34pm UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/2 "2023-07-03T15:34:54Z")

</div>

How is this related to Elasticsearch and/or the Elastic stack?

---

<div class="post-metadata">

### Author: ![Shalinicts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalinicts/32/81251_2.png) [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)
#### Post date: [July 3, 2023, 3:57pm UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/3 "2023-07-03T15:57:00Z")

</div>

From kafka have to read via Logstahs and store the logs in Elasticsearch.

---

<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: [July 3, 2023, 6:06pm UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/4 "2023-07-03T18:06:51Z")

</div>

> [@Shalinicts](#):
>
> From kafka have to read via Logstahs and store the logs in Elasticsearch.

But your question is not related to any tool in the Elastic Stack, it is an infrastructure question.

For Logstash it doesn't matter where your Kafka is, it just need to be able to connect to it, how it will connect and what you need to configure is out of the scope of this forum.

You will have more chances to have this answered looking on a more broader place like StackOverflow for example.

---

<div class="post-metadata">

### Author: ![Shalinicts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalinicts/32/81251_2.png) [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)
#### Post date: [July 4, 2023, 7:13am UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/5 "2023-07-04T07:13:05Z")

</div>

Sure Thanks Leandro Pereira

---

<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: [August 1, 2023, 7:13am UTC](https://discuss.elastic.co/t/external-application-to-connect-kafka-in-internal-network/337481/6 "2023-08-01T07:13:59Z")

</div>

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