# Using Logstash HTTP\_poller for NTLM authentication

**URL:** <https://discuss.elastic.co/t/using-logstash-http-poller-for-ntlm-authentication/288249>\
**Category:** Logstash\
**Created:** [November 2, 2021, 4:32pm UTC](https://discuss.elastic.co/t/using-logstash-http-poller-for-ntlm-authentication/288249 "2021-11-02T16:32:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jondayko](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jondayko](https://discuss.elastic.co/u/jondayko)\
**Post date:** [November 2, 2021, 4:32pm UTC](https://discuss.elastic.co/t/using-logstash-http-poller-for-ntlm-authentication/288249/1 "2021-11-02T16:32:55Z")

</div>

So, currently I am trying to use the http\_poller input plugin to send OData (JSON) to Kibana using Logstash. However, I keep running into problems trying to authenticate using NTLM. I was able to figure out that you can use the "auth" option and specify NTLM, but after getting here, I keep getting the error

> HttpAuthenticator - NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials

```auto
input {
  http_poller {
    urls => {
      test1 => {
        method => get
        auth => NTLM
        user => "XXXX"
        password => "XXX"
        url => "XXXXXX"
        headers => {
          Accept => "application/json"
        }
      }
    }
    schedule => {every => "60s"}
    request_timeout => 60
    codec => "json"
  }
}

output {
  stdout {
    codec => rubydebug
  }
}

```

Does anyone know what I am misunderstanding here to get it to work properly? Or is Http\_Poller just not able to handle this and I need a different way? I have seen someone suggest to use Selenium to another person attempting NTLM, but I want to see if I can figure out a way that isn't more complicated.

---

<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 30, 2021, 4:33pm UTC](https://discuss.elastic.co/t/using-logstash-http-poller-for-ntlm-authentication/288249/2 "2021-11-30T16:33:55Z")

</div>

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