# Metricbeat and Filebeat two input in one logstash

**URL:** https://discuss.elastic.co/t/metricbeat-and-filebeat-two-input-in-one-logstash/114674
**Category:** Logstash
**Created:** [January 9, 2018, 9:57am UTC](https://discuss.elastic.co/t/metricbeat-and-filebeat-two-input-in-one-logstash/114674 "2018-01-09T09:57:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bikash\_Behuria](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@Bikash\_Behuria](https://discuss.elastic.co/u/Bikash_Behuria)
#### Post date: [January 9, 2018, 9:57am UTC](https://discuss.elastic.co/t/metricbeat-and-filebeat-two-input-in-one-logstash/114674/1 "2018-01-09T09:57:53Z")

</div>

Hi ,

Can I have two input of beat in one logstash like below . The type in File beat is being set in document\_type field in filebeat yml and for metricbeat type , I am still searching how to set from Metric beat YML. Can you please help ?

input {

beats {  
port =\> 5044  
type =\> "iislogs"  
codec =\> json  
}

beats {  
port =\> 5044  
type =\> "metricsdata"  
codec =\> json  
}  
}

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 9, 2018, 9:59am UTC](https://discuss.elastic.co/t/metricbeat-and-filebeat-two-input-in-one-logstash/114674/2 "2018-01-09T09:59:11Z")

</div>

You can not have 2 inputs use the same port, so you need to change one of them.

---

<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: [February 6, 2018, 9:59am UTC](https://discuss.elastic.co/t/metricbeat-and-filebeat-two-input-in-one-logstash/114674/3 "2018-02-06T09:59:11Z")

</div>

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