# Is this logic right?

**URL:** https://discuss.elastic.co/t/is-this-logic-right/358063
**Category:** Logstash
**Created:** [April 23, 2024, 10:16pm UTC](https://discuss.elastic.co/t/is-this-logic-right/358063 "2024-04-23T22:16:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marlon\_Westphol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marlon_westphol/32/133788_2.png) [@Marlon\_Westphol](https://discuss.elastic.co/u/Marlon_Westphol)
#### Post date: [April 23, 2024, 10:16pm UTC](https://discuss.elastic.co/t/is-this-logic-right/358063/1 "2024-04-23T22:16:28Z")

</div>

In short: I have an elastic agent on a remote host A

Logstash with elasticsearch on the same kubernetes host on a remote host B

Will the logstash input plugin for elastic agent or beats always be 5044? Will I have to do a 433:5043 redirect?

This question was raised because the input http 8080 responds to me as Ok if I access the pod service internally but the input Elasticsearch 5044 does not return anything to me

---

<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: [April 24, 2024, 12:56am UTC](https://discuss.elastic.co/t/is-this-logic-right/358063/2 "2024-04-24T00:56:17Z")

</div>

> [@Marlon\_Westphol](#):
>
> Will the logstash input plugin for elastic agent or beats always be 5044?

No, you need to specify the port, you can choose other port number.

> [@Marlon\_Westphol](#):
>
> Will I have to do a 433:5043 redirect?

This can lead to some confusion as `443` is the default port for `https`, the beats input **does not** use http/https, it uses a proprietary protocol over tcp.

If you are using some ingress or load balancer you need to use tcp, it will not work if you use http or https.
