# Logstash plugin authenticate WebHDFS with Knox

**URL:** <https://discuss.elastic.co/t/logstash-plugin-authenticate-webhdfs-with-knox/140067>\
**Category:** Logstash\
**Created:** [July 16, 2018, 12:23am UTC](https://discuss.elastic.co/t/logstash-plugin-authenticate-webhdfs-with-knox/140067 "2018-07-16T00:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzyubanv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyubanv/32/24110_2.png) [@dzyubanv](https://discuss.elastic.co/u/dzyubanv)\
**Post date:** [July 16, 2018, 12:23am UTC](https://discuss.elastic.co/t/logstash-plugin-authenticate-webhdfs-with-knox/140067/1 "2018-07-16T00:23:06Z")

</div>

Does someone know if logstash plugin support authentication with Knox ?

I'm running logstash-6.3.1 (not ELK distribution) locally on windows trying to push data to hdfs (on remote server) with webhdfs and authenticate with Knox, but logstash fails to start - unable to connect.  
Logstash config contains:  
Output ( webhdfs(host=\>"[knoxcluster.com:123/.../webhdfs/v1](http://knoxcluster.com:123/.../webhdfs/v1)" ...

At the same time the curl request on windows gitbash to remote server works fine  
curl -iku user:password -X GET 'https:knoxcluster.com:123/.../webhdfs/v1/?op=gethomedirectory'

I looked at the source [https://github.com/logstash-plugins/logstash-output-hdfs/blob/master/lib/logstash/outputs/webhdfs.rb](https://github.com/logstash-plugins/logstash-output-hdfs/blob/master/lib/logstash/outputs/webhdfs.rb) and it seems that the code is not designed to handle the Knox authentication.

Any help will be appreciated

---

<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:** [August 13, 2018, 12:23am UTC](https://discuss.elastic.co/t/logstash-plugin-authenticate-webhdfs-with-knox/140067/2 "2018-08-13T00:23:20Z")

</div>

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