# Collect logs from multiple machine, what needs to be installed?

**URL:** <https://discuss.elastic.co/t/collect-logs-from-multiple-machine-what-needs-to-be-installed/330833>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [April 26, 2023, 12:02pm UTC](https://discuss.elastic.co/t/collect-logs-from-multiple-machine-what-needs-to-be-installed/330833 "2023-04-26T12:02:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jay\_Timbadia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jay_timbadia/32/86572_2.png) [@Jay\_Timbadia](https://discuss.elastic.co/u/Jay_Timbadia)\
**Post date:** [April 27, 2023, 6:32am UTC](https://discuss.elastic.co/t/collect-logs-from-multiple-machine-what-needs-to-be-installed/330833/4 "2023-04-27T06:32:35Z")

</div>

Also pls see this chat, [Receive multiple Logstash inputs with TCP, UDP and Beats - #3 by sakshat](https://discuss.elastic.co/t/receive-multiple-logstash-inputs-with-tcp-udp-and-beats/287020/3)

this person has two logstash config files, but different logstash port number.

So in order to run two different config files, do we need to logstash instance?  
Or we can run two config files with same port number?

Will below one work?

```auto
input {
	beats {
    port => 5044
    type => 3dlog
  }
}

filter {}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "logs-%{+yyyy.MM.dd}"
  }
}

```

```auto
input {
  tcp {
    port => 5044
    type => syslog
  }
}

filter {
}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "app-logs-%{+yyyy.MM.dd}"
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/collect-logs-from-multiple-machine-what-needs-to-be-installed/330833)._
