Filebeat and Logstash on two Different servers

How do i configure my logstash config file to input from a different beats server(not on localhost).

Generally it is this :-

input{
  beats{
          port => "5044"
     }

}

But now i have beats on a different server(Not on localhost). How should i change it this?

You don't need to change anything. It's Filebeat that connects to Logstash.

Thanks for the reply :slightly_smiling_face:

I am guessing it showed error because i changed the logstash input to the "server name" and the port number(which is there by default).