# HTTP\_Poller and Elasticsearch

**URL:** https://discuss.elastic.co/t/http-poller-and-elasticsearch/282704
**Category:** Logstash
**Created:** [August 27, 2021, 8:03pm UTC](https://discuss.elastic.co/t/http-poller-and-elasticsearch/282704 "2021-08-27T20:03:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tofubeats](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tofubeats](https://discuss.elastic.co/u/tofubeats)
#### Post date: [August 27, 2021, 8:03pm UTC](https://discuss.elastic.co/t/http-poller-and-elasticsearch/282704/1 "2021-08-27T20:03:40Z")

</div>

Hi,

I am trying to query elasticsearch API with http\_poller input but keep getting the beloved PKIX building path failed error. I've set the elasticsearch.yml on the node being queried to contain the following:

```auto
xpack.security.transport.ssl.client_authentication: optional
xpack.security.http.ssl.client_authentication: optional

```

The config that contains the http\_poller input is pretty plain, it looks like this:

```auto
input {
    http_poller {
       urls => {
         url => "https://{{fqdn}}:9200"
       }
    schedule => { cron => "* * * * * UTC"}
  }
}

output {
  file {
    path => "output.json"
  }
}

```

I'm not sure what I'm doing wrong here? I thought setting the params I mentioned in the elasticsearch.yml file would cause ES to not require a client cert when queried but still use SSL.

Also interesting is that when i change the URL from https to http the connection is just simply rejected

---

<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: [September 24, 2021, 8:04pm UTC](https://discuss.elastic.co/t/http-poller-and-elasticsearch/282704/2 "2021-09-24T20:04:13Z")

</div>

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