Logstash's http.port setting chooses on which port Logstash should expose its management API. It has nothing to do with the Filebeat communication. Ignore it for now.
Filebeat's hosts setting points to the hostname and port where you have configured Logstash's beats input plugin to listen. Port 5044 is frequently used but you can pick any unused port.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.