How to Install multiple logstash on different computer?

Use the following configuration in filebeat:

hosts: ["logstashserver1:5044", "logstashserver2:5045"]

In the logstash configuration you do

output {
                    elasticsearch {
                          hosts => ["http://LOGSTASH01:9200"]
                    }
    }