# Your socket connection to the sever was not read from or written to within the timeout period

**URL:** <https://discuss.elastic.co/t/your-socket-connection-to-the-sever-was-not-read-from-or-written-to-within-the-timeout-period/237542>\
**Category:** Logstash\
**Created:** [June 17, 2020, 10:11pm UTC](https://discuss.elastic.co/t/your-socket-connection-to-the-sever-was-not-read-from-or-written-to-within-the-timeout-period/237542 "2020-06-17T22:11:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annette1](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Annette1](https://discuss.elastic.co/u/Annette1)\
**Post date:** [June 17, 2020, 10:11pm UTC](https://discuss.elastic.co/t/your-socket-connection-to-the-sever-was-not-read-from-or-written-to-within-the-timeout-period/237542/1 "2020-06-17T22:11:13Z")

</div>

Logstash to s3 output - getting Your socket connection to the sever was not read from or written to within the timeout period.

AWS - explanation **The number of bytes set in the "Content-Length" header is more than the actual file size**

How do I determine content length and factor this in the logstash config..

I have tired adjusting rotation\_strag=tegy, file\_size. time with no joy. Any help ou could provide in determining the adjusting to fix his issue woud be much appreciated.

---

<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:11pm UTC](https://discuss.elastic.co/t/your-socket-connection-to-the-sever-was-not-read-from-or-written-to-within-the-timeout-period/237542/2 "2020-07-15T22:11:13Z")

</div>

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