# Logstash URL Login giving error

**URL:** <https://discuss.elastic.co/t/logstash-url-login-giving-error/95783>\
**Category:** Logstash\
**Created:** [August 3, 2017, 10:20pm UTC](https://discuss.elastic.co/t/logstash-url-login-giving-error/95783 "2017-08-03T22:20:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeeppattem](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sandeeppattem](https://discuss.elastic.co/u/sandeeppattem)\
**Post date:** [August 3, 2017, 10:20pm UTC](https://discuss.elastic.co/t/logstash-url-login-giving-error/95783/1 "2017-08-03T22:20:40Z")

</div>

Hello,

I am trying to pull in data from Dynatrace. But getting the XML data required Login.  
I have the config file :  
input {  
http\_poller { urls =\> {  
test1 =\> { url =\>  
"[https://xxx.dynatrace.com:8021/rest/management/reports/create/PROD\_ElasticDashboard?type=XML&format=XML+Export](https://xxx.dynatrace.com:8021/rest/management/reports/create/PROD_ElasticDashboard?type=XML&format=XML+Export)"  
user =\> "xxx"  
password =\> "xxx"  
} request\_timeout =\> 60  
interval =\> 120  
codec =\> "plain"  
} } }  
output { stdout {  
codec =\> rubydebug  
} }

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/6/96a733f2bf6a386bde7822b7ff41e45f4a59207e.png)  
We are getting unknown "user" and "pass

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 4, 2017, 3:50am UTC](https://discuss.elastic.co/t/logstash-url-login-giving-error/95783/2 "2017-08-04T03:50:19Z")

</div>

Look at the documentation for your version of Logstash and you'll note that authentication is configured somewhat differently than you think: [https://www.elastic.co/guide/en/logstash/5.2/plugins-inputs-http\_poller.html](https://www.elastic.co/guide/en/logstash/5.2/plugins-inputs-http_poller.html)

(You should also be able to upgrade the logstash-input-http\_poller plugin and use the newer version where authentication works as you've currently configured it.)

---

<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 1, 2017, 3:50am UTC](https://discuss.elastic.co/t/logstash-url-login-giving-error/95783/3 "2017-09-01T03:50:23Z")

</div>

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