# Filebeat and Logstash on two Different servers

**URL:** https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021
**Category:** Logstash
**Created:** [July 28, 2018, 8:52am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021 "2018-07-28T08:52:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Priyaranjan\_Mudliar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyaranjan_mudliar/32/33726_2.png) [@Priyaranjan\_Mudliar](https://discuss.elastic.co/u/Priyaranjan_Mudliar)
#### Post date: [July 28, 2018, 8:52am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021/1 "2018-07-28T08:52:41Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 28, 2018, 11:09am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021/2 "2018-07-28T11:09:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Priyaranjan\_Mudliar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyaranjan_mudliar/32/33726_2.png) [@Priyaranjan\_Mudliar](https://discuss.elastic.co/u/Priyaranjan_Mudliar)
#### Post date: [July 28, 2018, 4:00pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021/3 "2018-07-28T16:00:19Z")

</div>

Thanks for the reply 🙂

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).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 25, 2018, 4:00pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-on-two-different-servers/142021/4 "2018-08-25T16:00:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
