# Http\_poller input giving read time out

**URL:** <https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809>\
**Category:** Logstash\
**Created:** [April 4, 2018, 7:20pm UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809 "2018-04-04T19:20:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![uvarisubash](https://avatars.discourse-cdn.com/v4/letter/u/c37758/32.png) [@uvarisubash](https://discuss.elastic.co/u/uvarisubash)\
**Post date:** [April 4, 2018, 7:20pm UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809/1 "2018-04-04T19:20:02Z")

</div>

Http\_poller input giving read time out when data is more 100000. please help me on this

```auto

{
             "@timestamp" => 2018-04-04T19:17:10.278Z,
                   "tags" => [
       [0] "_http_request_failure",
       [1] "_split_type_failure"
   ],
   "http_request_failure" => {
               "request" => {
           "headers" => {
               "Accept" => "application/json"
           },
               "url" => "http://3.204.110.149:5004/fetchAll",
            "method" => "get"
       },
                 "error" => "Read timed out",
       "runtime_seconds" => 10.021353000000001,
                  "name" => "test1",
             "backtrace" => nil
   }

```

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [April 5, 2018, 1:36am UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809/2 "2018-04-05T01:36:41Z")

</div>

The [connect timeout by default is 10s](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html#plugins-inputs-http_poller-connect_timeout), and it looks like you're hitting it. This means that the remote host isn't responding to open the connection. Do you have a route to the host?

---

<div class="post-metadata">

**Author:** ![uvarisubash](https://avatars.discourse-cdn.com/v4/letter/u/c37758/32.png) [@uvarisubash](https://discuss.elastic.co/u/uvarisubash)\
**Post date:** [April 5, 2018, 3:09am UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809/3 "2018-04-05T03:09:46Z")

</div>

thanks for replying. it works fine if the data is less.  
i have kept timeout more than 10s enventhough the same issue occurs . please refer the input below

```auto
input {
  http_poller {
    urls => {
      test1 => {
        # Supports all options supported by ruby's Manticore HTTP client
        method => get
        url => "http://3.204.110.149:5004/fetchAll"
        headers => {
          Accept => "application/json"
        }
     }

    }
    connect_timeout => 1000000
    request_timeout => 900000
    automatic_retries => 10
    # Supports "cron", "every", "at" and "in" schedules by rufus scheduler
    #schedule => { cron => "* * * * * UTC"}
    codec => "json"
    # A hash of request metadata info (timing, response headers, etc.) will be sent here
    metadata_target => "http_poller_metadata"
  }

``
```

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [April 5, 2018, 5:58am UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809/4 "2018-04-05T05:58:42Z")

</div>

When you increase the timeout, does it take longer to timeout? When you observe the network throughput on the machine, is it actually pulling data? If you curl the same URL manually from the Logstash box, how big is the payload, and how long does it take to arrive?

---

<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:** [May 3, 2018, 5:59am UTC](https://discuss.elastic.co/t/http-poller-input-giving-read-time-out/126809/5 "2018-05-03T05:59:02Z")

</div>

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