# Why logstash is not considering my ports?

**URL:** https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443
**Category:** Logstash
**Created:** [June 17, 2020, 9:52am UTC](https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443 "2020-06-17T09:52:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AngeloM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angelom/32/70515_2.png) [@AngeloM](https://discuss.elastic.co/u/AngeloM)
#### Post date: [June 17, 2020, 9:52am UTC](https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443/1 "2020-06-17T09:52:38Z")

</div>

Getting crazy here !  
The idea is to import different log from different port and import then in different indexes.  
I got two different configuration files on "etc/logtash/init.d".  
The two configuration files has two different ports as an input and different indexes as an output.  
What i get is to see the same data in both the indexes. It seems logstash is not considering the port ! What do i do wrong ?  
Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 17, 2020, 10:15am UTC](https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443/2 "2020-06-17T10:15:26Z")

</div>

Welcome to our community! 😃

When Logstash runs it will merge any configs into one big file, so that's likely what is happening. You will want to use either pipelines to keep things separate, or tagging and conditionals to do something similar.

---

<div class="post-metadata">

### Author: ![AngeloM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angelom/32/70515_2.png) [@AngeloM](https://discuss.elastic.co/u/AngeloM)
#### Post date: [June 17, 2020, 10:25am UTC](https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443/3 "2020-06-17T10:25:57Z")

</div>

Thanks mark ... it s what was happening. I had to declare both pipelines on pipelines.yml ! Thanks again !

---

<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: [July 15, 2020, 10:25am UTC](https://discuss.elastic.co/t/why-logstash-is-not-considering-my-ports/237443/4 "2020-07-15T10:25:58Z")

</div>

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