# Tcp input data\_timeout in logstash-5.0-beta1 removed

**URL:** <https://discuss.elastic.co/t/tcp-input-data-timeout-in-logstash-5-0-beta1-removed/62027>\
**Category:** Logstash\
**Created:** [October 3, 2016, 6:47am UTC](https://discuss.elastic.co/t/tcp-input-data-timeout-in-logstash-5-0-beta1-removed/62027 "2016-10-03T06:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)\
**Post date:** [October 3, 2016, 6:47am UTC](https://discuss.elastic.co/t/tcp-input-data-timeout-in-logstash-5-0-beta1-removed/62027/1 "2016-10-03T06:47:01Z")

</div>

Hi guys,I saw the following info in tcp input:

config :data\_timeout, :validate =\> :number, :default =\> -1, :deprecated =\> "This setting is not used by this plugin. It will be removed soon."

I wonder what the reason is to remove [this.In](http://this.In) my use case, nxlog( act as a tcp client)-\>lvs(act as a proxy,ha)-\>logstash(tcp input server),lvs has a timeout setting which will reset all the connections from nxlog after specific idle time,nxlog will reconnect if there are logs to upload and lvs will set up a new connection to logstash,but logstash still holds the previous connection with state ESTABLISHED,as a result,connections to logstash are accumulating.

I know how to fix this problem,such as setting an unlimited timeout in lvs or restart logstash periodically,but either option is good enough to us.

I think the better solution is using tcp input with a data\_timeout option which will close connection after configured timeout.

Thanks.

---

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [April 4, 2017, 9:56am UTC](https://discuss.elastic.co/t/tcp-input-data-timeout-in-logstash-5-0-beta1-removed/62027/2 "2017-04-04T09:56:12Z")

</div>

I noticed this a while ago, it is a very useful feature to have as a failsafe for bad connections.

I have not found any reason for this to be removed so far, does anyone here know?

---

<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 6, 2017, 4:27am UTC](https://discuss.elastic.co/t/tcp-input-data-timeout-in-logstash-5-0-beta1-removed/62027/3 "2017-07-06T04:27:21Z")

</div>


