# Http\_pollar input is not working with the certificate

**URL:** https://discuss.elastic.co/t/http-pollar-input-is-not-working-with-the-certificate/274748
**Category:** Logstash
**Created:** [June 2, 2021, 12:26pm UTC](https://discuss.elastic.co/t/http-pollar-input-is-not-working-with-the-certificate/274748 "2021-06-02T12:26:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anjilinga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anjilinga/32/86010_2.png) [@anjilinga](https://discuss.elastic.co/u/anjilinga)
#### Post date: [June 2, 2021, 12:26pm UTC](https://discuss.elastic.co/t/http-pollar-input-is-not-working-with-the-certificate/274748/1 "2021-06-02T12:26:43Z")

</div>

Hi We are using http\_poller to query elastic in logstash input with the selfsigned certificate. but not receieving any result and not prompting any error in the logstash. tls is enabled at elastic. when i run the same query in devtools it is returning the result set.

can you please suggest what could be the isssue.

below is the code snippet in logstash input.

```auto
input {
http_poller {
urls => {
sessionCreate => {
method => "GET"
url => "${inputurl}"
user => "${user}"
password => "${password}"
verify_cert => true
truststore => "/etc/dl/logstash/certs/rootca.jks"
headers => {
Accept => "application/json"
"Content-Type" => "application/json"
}
body => '{
"size": 0,
"aggs": {
"distinct_AgentID": {
"terms": {
"field": "AgentID",
"size": 1000
}
}
},
"_source": {
"includes": [
"AgentID"
]
},
"query": {"bool": {
"must":
{
"range":{
"StartDateTime" : {
"gt": "now-24h"
}
}
}

}}
}'
}
}

```

---

<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: [June 30, 2021, 12:27pm UTC](https://discuss.elastic.co/t/http-pollar-input-is-not-working-with-the-certificate/274748/2 "2021-06-30T12:27:35Z")

</div>

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