# Starting listener on port commented out in config ...?

**URL:** <https://discuss.elastic.co/t/starting-listener-on-port-commented-out-in-config/105641>\
**Category:** Logstash\
**Created:** [October 28, 2017, 2:08pm UTC](https://discuss.elastic.co/t/starting-listener-on-port-commented-out-in-config/105641 "2017-10-28T14:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![irom77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irom77/32/12976_2.png) [@irom77](https://discuss.elastic.co/u/irom77)\
**Post date:** [October 28, 2017, 2:08pm UTC](https://discuss.elastic.co/t/starting-listener-on-port-commented-out-in-config/105641/1 "2017-10-28T14:08:50Z")

</div>

I commented one of two my inputs in config file, but I can see in logs that it is still starting...

```
13:59:39.989 [[main]<udp] INFO logstash.inputs.udp - Starting UDP listener {:address=>"0.0.0.0:11514"}
13:59:39.995 [[main]-pipeline-manager] INFO logstash.inputs.tcp - Starting tcp input listener {:address=>"0.0.0.0:11666"}

```

below relevant part of my config:

> input {  
> udp {  
> port =\> 11514  
> type =\> "threat"  
> #workers =\> 4  
> queue\_size =\> 8000 # default 2000  
> }  
> #tcp {  
> #port =\> 11666  
> #type =\> "debug"  
> #}  
> }

---

<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:** [October 30, 2017, 12:43pm UTC](https://discuss.elastic.co/t/starting-listener-on-port-commented-out-in-config/105641/2 "2017-10-30T12:43:10Z")

</div>

Keep in mind that Logstash (prior to 6.0 anyway) reads _all_ configuration files in /etc/logstash/conf.d. Perhaps you have a backup file or something with the tcp listener intact.

---

<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:** [November 27, 2017, 12:43pm UTC](https://discuss.elastic.co/t/starting-listener-on-port-commented-out-in-config/105641/3 "2017-11-27T12:43:13Z")

</div>

Closed on November 27, 2017, 12:43pm UTC

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