# Http poller logstash plugin - auth problem

**URL:** <https://discuss.elastic.co/t/http-poller-logstash-plugin-auth-problem/77607>\
**Category:** Logstash\
**Created:** [March 7, 2017, 7:46am UTC](https://discuss.elastic.co/t/http-poller-logstash-plugin-auth-problem/77607 "2017-03-07T07:46:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonas](https://discuss.elastic.co/u/Jonas)\
**Post date:** [March 7, 2017, 7:46am UTC](https://discuss.elastic.co/t/http-poller-logstash-plugin-auth-problem/77607/1 "2017-03-07T07:46:23Z")

</div>

Hello,

I try to use http poller plugin with ssl and auth. I have problem with user authentication on server using http poller.

CURL WORKS PERFECT:  
curl --cacert downloaded\_cert.pem -X POST -u USER:PASSWORD "[https://xxxxxxxxxxxxxxxxxxxx](https://xxxxxxxxxxxxxxxxxxxx)"

LOGSTASH CONFIG FILE:

input {

http\_poller {  
# List of urls to hit  
# URLs can either have a simple format for a get request  
# Or use more complex HTTP features  
urls =\> {  
some\_other\_service =\> {  
method =\> "POST"  
url =\> "[https://xxxxxxxxxxx](https://xxxxxxxxxxx)  
auth =\> {  
user =\> "USER"  
password =\> "PASSWORD"}

}  
}

```
truststore => "/home/ubuntu/downloaded_truststore.jks"
truststore_password => "password"
request_timeout => 300
interval => 300
codec => "json"

```

}  
}  
output {  
stdout { codec =\> rubydebug }  
}

LOGSTASH OUTPUT:

Logstash startup completed  
{  
"errors" =\> [  
[0] {  
"status" =\> 403,  
"message" =\> "You are not permitted to execute 'function'."  
}  
],  
"@version" =\> "1",  
"@timestamp" =\> "2017-03-07T07:44:47.415Z"  
}

CURL :

---

<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:** [April 4, 2017, 7:46am UTC](https://discuss.elastic.co/t/http-poller-logstash-plugin-auth-problem/77607/2 "2017-04-04T07:46:25Z")

</div>

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