Is this logic right?

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

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

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.