# Logstash http\_poller "read time out" on http 200 response

**URL:** <https://discuss.elastic.co/t/logstash-http-poller-read-time-out-on-http-200-response/316416>\
**Category:** Logstash\
**Created:** [October 12, 2022, 8:11am UTC](https://discuss.elastic.co/t/logstash-http-poller-read-time-out-on-http-200-response/316416 "2022-10-12T08:11:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Hoog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marc_hoog/32/111964_2.png) [@Marc\_Hoog](https://discuss.elastic.co/u/Marc_Hoog)\
**Post date:** [October 12, 2022, 8:11am UTC](https://discuss.elastic.co/t/logstash-http-poller-read-time-out-on-http-200-response/316416/1 "2022-10-12T08:11:33Z")

</div>

So I got this pipeline in logstash using http\_poller and it works when the client is responding with a 401, but It breaks when it responses with a 200 with a little bit of data.

These request also do work with curl from the logstash host. Anybody any idea what it could be?

```auto
# testing this

input {
  http_poller {
    urls => {
     api => {
        method => post
        url => "https://salt:8080/run"
        headers => {
          Accept => "application/x-yaml"
        }
        body =>'[{"client":"local","tgt":"win*","fun":"test.echo","token":"0317a0db839100e5df8b1e902ffd8515f44a38dad1716c7d5ae8e17f846d4b5c"}]'
      }
    }
    request_timeout => 60

    ssl_verification_mode => "none"
    #client_cert => "/etc/logstash/certs.d/cert.pem"
    #client_key => "/etc/logstash/certs.d/key.pem"
    schedule => {cron => "*/1 * * * * UTC"}
    codec => "line"

  }
}

output {
  stdout {
    codec => rubydebug
  }
}

```

The outlut:

```auto
{
      "@version" => "1",
          "tags" => [
        [0] "_http_request_failure"
    ],
         "event" => {
        "duration" => 10563358
    },
         "error" => {
        "stack_trace" => nil,
            "message" => "Read timed out"
    },
    "@timestamp" => 2022-10-12T07:54:10.690863554Z,
           "url" => {
        "full" => "https://salt:8080/run"
    },
          "host" => {
        "hostname" => "salt-logstash01"
    },
          "http" => {
        "request" => {
            "method" => "post"
        }
    }
}'

```

---

<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 9, 2022, 8:12am UTC](https://discuss.elastic.co/t/logstash-http-poller-read-time-out-on-http-200-response/316416/2 "2022-11-09T08:12:12Z")

</div>

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